Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Redesign context implementation
Browse files Browse the repository at this point in the history
oops make it private
  • Loading branch information
NthPortal committed Aug 21, 2023
1 parent c58c71e commit 3dbffba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import cats.syntax.functor._
import org.typelevel.vault.{Key => VaultKey}
import org.typelevel.vault.Vault

final class VaultContext(vault: Vault) {
final class VaultContext private (vault: Vault) {
def get[A](key: VaultContext.Key[A]): Option[A] =
vault.lookup(key.underlying)
def getOrElse[A](key: VaultContext.Key[A], default: => A): A =
Expand Down

0 comments on commit 3dbffba

Please sign in to comment.