diff options
author | Job van der Voort <jobvandervoort@gmail.com> | 2014-08-27 12:13:56 +0200 |
---|---|---|
committer | Job van der Voort <jobvandervoort@gmail.com> | 2014-08-27 12:13:56 +0200 |
commit | 81a67f7533a9999a404a03c8c259b3233a2b8c40 (patch) | |
tree | 48e98dec650ca396c094fde873087d18011fc0e9 /lib/gitlab_shell.rb | |
parent | 91753e937e729c0fedc9a5dd7ae52b85436b4971 (diff) | |
download | gitlab-shell-81a67f7533a9999a404a03c8c259b3233a2b8c40.tar.gz |
use abort isntead of raise when checking path
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 086e36b..6edb748 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -93,7 +93,7 @@ class GitlabShell if File.absolute_path(full_repo_path) == full_repo_path path else - raise "Wrong repository path" + abort "Wrong repository path" end end end |