Skip to content

Commit 63e845e

Browse files
committed
Always use raise to signal exceptions
1 parent a0fd221 commit 63e845e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414
group :test do
1515
gem 'coveralls'
1616
gem 'rspec', '>= 3'
17-
gem 'rubocop', '>= 0.28'
17+
gem 'rubocop', '>= 0.37'
1818
gem 'simplecov', '>= 0.9'
1919
gem 'timecop'
2020
gem 'webmock', '>= 1.10.1'

lib/t/rcfile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def find(username)
2020
if possibilities.size == 1
2121
possibilities.first
2222
else
23-
fail(ArgumentError.new("Username #{username} is #{possibilities.size < 1 ? 'not found.' : 'ambiguous, matching ' + possibilities.join(', ')}"))
23+
raise(ArgumentError.new("Username #{username} is #{possibilities.size < 1 ? 'not found.' : 'ambiguous, matching ' + possibilities.join(', ')}"))
2424
end
2525
end
2626

tasks/bash.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace :completion do
1212
if git_status[/M #{output_path}/]
1313
cmd = "git add #{output_path} && git commit -m 'Updating Bash completion'"
1414
result = system cmd
15-
fail('Could not commit changes') unless result
15+
raise('Could not commit changes') unless result
1616
end
1717
end
1818
end

tasks/zsh.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace :completion do
1212
if git_status[/M #{output_path}/]
1313
cmd = "git add #{output_path} && git commit -m 'Updating Zsh completion'"
1414
result = system cmd
15-
fail('Could not commit changes') unless result
15+
raise('Could not commit changes') unless result
1616
end
1717
end
1818
end

0 commit comments

Comments
 (0)