Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Feb 7, 2024
1 parent 12126c3 commit 7400f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/minisign/public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def initialize(str)
@public_key = @decoded[10..]
@verify_key = Ed25519::VerifyKey.new(@public_key)
@untrusted_comment = if parts.length == 1
"minisign public key #{key_id}\n#{key_data}\n"
else
parts.first.split("untrusted comment: ").last
end
"minisign public key #{key_id}\n#{key_data}\n"
else
parts.first.split('untrusted comment: ').last
end
end

# @return [String] the key id
Expand Down
2 changes: 1 addition & 1 deletion spec/minisign/public_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
end
it 'regenerates an untrusted comment if not provided' do
@pk = Minisign::PublicKey.new('RWSmKaOrT6m3TGwjwBovgOmlhSbyBUw3hyhnSOYruHXbJa36xHr8rq2M')
expect(@pk.to_s).to match("minisign public key 4CB7A94FABA329A6")
expect(@pk.to_s).to match('minisign public key 4CB7A94FABA329A6')
end
end

0 comments on commit 7400f6f

Please sign in to comment.