Skip to content

Commit

Permalink
Don't use safe navigation operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Dec 13, 2022
1 parent 06107c8 commit d274f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timecop/timecop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def thread_safe

# Returns whether or not Timecop is currently frozen
def frozen?
instance.stack.last&.mock_type == :freeze
!instance.stack.empty? && instance.stack.last.mock_type == :freeze
end

private
Expand Down

0 comments on commit d274f02

Please sign in to comment.