diff options
author | elijah <elijah@riseup.net> | 2016-07-20 23:49:10 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-07-20 23:49:10 -0700 |
commit | 9411049e703a2974c96b42b3e111574f82d7ca65 (patch) | |
tree | e009583f4a2ee7e7c15773645a2e45f1c535bc9d /lib/leap_cli | |
parent | 47b3bb60a20674d029950ebd39f6aacf67e81866 (diff) |
linting
Diffstat (limited to 'lib/leap_cli')
-rw-r--r-- | lib/leap_cli/util.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index 45606b7..8826d21 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -427,15 +427,13 @@ module LeapCli return $? == 0 end end - + def is_git_subrepo?(dir) - Dir.chdir(dir) do - `ls .gitrepo 2>/dev/null` - return $? == 0 - end + Dir.chdir(dir) do + `ls .gitrepo 2>/dev/null` + return $? == 0 end - - + end def current_git_branch(dir) Dir.chdir(dir) do |