Skip to content

Commit

Permalink
we don't need unless check because the CAS will return false if a Tan…
Browse files Browse the repository at this point in the history
…kard::Client has already been set
  • Loading branch information
matthewshafer committed Mar 27, 2014
1 parent 0afdcab commit 54c6260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tankard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class << self
include Configuration

def client
@client.compare_and_swap(nil, Tankard::Client.new(credentials)) unless @client.value
@client.compare_and_swap(nil, Tankard::Client.new(credentials))
@client.value
end

Expand Down

0 comments on commit 54c6260

Please sign in to comment.