summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carling <lowe@lowe.nu>2019-10-31 03:05:10 +0100
committerAnders Carling <lowe@lowe.nu>2019-10-31 03:05:10 +0100
commitb953838c934efe79a7e0b1f27dcec98307e54efa (patch)
treeec9c28fde65eee415f6e019b43f34d0c033bfb7f
parent13cc8ba6d8255ccc18e66da8ee801cd3b7f160f3 (diff)
downloadnet-ssh-b953838c934efe79a7e0b1f27dcec98307e54efa.tar.gz
Fix rubocop complaints
-rw-r--r--lib/net/ssh/authentication/key_manager.rb1
-rw-r--r--test/authentication/test_key_manager.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/net/ssh/authentication/key_manager.rb b/lib/net/ssh/authentication/key_manager.rb
index f22ba88..242d5d5 100644
--- a/lib/net/ssh/authentication/key_manager.rb
+++ b/lib/net/ssh/authentication/key_manager.rb
@@ -132,7 +132,6 @@ module Net
yield key
end
-
known_identity_blobs = known_identities.keys.map(&:to_blob)
keycert_files.each do |keycert_file|
keycert = KeyFactory.load_public_key(keycert_file)
diff --git a/test/authentication/test_key_manager.rb b/test/authentication/test_key_manager.rb
index 98fe675..c40779f 100644
--- a/test/authentication/test_key_manager.rb
+++ b/test/authentication/test_key_manager.rb
@@ -311,7 +311,7 @@ module Authentication
cert.key = rsa_pk
cert.serial = 1
cert.key_id = "test key"
- cert.valid_principals = %w{test user}
+ cert.valid_principals = %w[test user]
cert.valid_before = Time.now - 86400
cert.valid_after = Time.now + 86400
cert.critical_options = {}