diff options
author | awlx <awlnx@penguinfriends.org> | 2016-02-25 14:14:00 +0100 |
---|---|---|
committer | awlx <awlnx@penguinfriends.org> | 2016-02-25 14:14:00 +0100 |
commit | a4bdbb84b2ecc7dc3499c169a803b90fdb650f98 (patch) | |
tree | 6e8e2ca5f4ef001c3a8e1728d71af4797b7e1bb0 /lib/oxidized | |
parent | a2b6dd71dbc4c57423b0f6b332bf035cd097c3dd (diff) |
Removed unnecessary repetition
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/hook/githubrepo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb index b959f6d..a6c6807 100644 --- a/lib/oxidized/hook/githubrepo.rb +++ b/lib/oxidized/hook/githubrepo.rb @@ -49,7 +49,7 @@ class GithubRepo < Oxidized::Hook log "Using https auth", :debug Rugged::Credentials::UserPassword.new(username: cfg.username, password: cfg.password) else - @credentials ||= if cfg.has_key?('pubkey') && cfg.has_key?('privkey') + if cfg.has_key?('pubkey') && cfg.has_key?('privkey') log "Using ssh auth with key", :debug Rugged::Credentials::SshKey.new(username: 'git', publickey: File.expand_path(cfg.pubkey), privatekey: File.expand_path(cfg.privkey)) else |