Skip to content

Commit

Permalink
fix: return @@context even when the unless block is not executed.
Browse files Browse the repository at this point in the history
  • Loading branch information
choongyong committed Jun 29, 2017
1 parent 8446b32 commit 6fc72f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby-nfc/nfc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def self.context
LibNFC.nfc_init(ptr)
@@context = ptr.read_pointer
end
@@context
end

def self.logger
Expand Down

0 comments on commit 6fc72f5

Please sign in to comment.