From 670c044b0db9c8f7536e057eb5f5f7525f446fff Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Fri, 8 Jun 2018 09:58:46 +0200 Subject: rc 0.57.1, fixup, todo + drop rails_best_practices (#1372) --- lib/oxidized/hook/githubrepo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/hook') diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb index e077d5d..9701608 100644 --- a/lib/oxidized/hook/githubrepo.rb +++ b/lib/oxidized/hook/githubrepo.rb @@ -49,7 +49,7 @@ class GithubRepo < Oxidized::Hook if cfg.has_key?('username') git_user = cfg.username else - git_user = username_from_url ? username_from_url : 'git' + git_user = username_from_url || 'git' end if cfg.has_key?('password') -- cgit v1.2.1