Skip to content

Commit

Permalink
Add clause to Cachex.unwrap_unsafe/1 to allow unwrapping calls to Cac…
Browse files Browse the repository at this point in the history
…hex.fetch!/4 when options are provided
  • Loading branch information
HansGlimmerfors authored and whitfin committed Sep 25, 2024
1 parent b2a88d0 commit d7ae030
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cachex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1441,4 +1441,7 @@ defmodule Cachex do

defp unwrap_unsafe({_state, value}),
do: value

defp unwrap_unsafe({_state, value, _opts}),
do: value
end

0 comments on commit d7ae030

Please sign in to comment.