Skip to content

Commit

Permalink
Fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
NARKOZ committed Apr 23, 2019
1 parent 040f5f6 commit 6e3f704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/gitlab/client/notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def edit_merge_request_note(project, merge_request, id, body)
# in the 'else'.
def note_content(body)
if body.is_a?(Hash)
STDERR.puts 'Passing the note body as a Hash is deprecated. You should just pass the String.'
warn 'Passing the note body as a Hash is deprecated. You should just pass the String.'
body
else
{ body: body }
Expand Down
4 changes: 2 additions & 2 deletions lib/gitlab/shell_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def read_from_file
path = history_file_path

File.foreach(path) { |line| yield(line) } if File.exist?(path)
rescue StandardError => error
warn "History file not loaded: #{error.message}"
rescue StandardError => e
warn "History file not loaded: #{e.message}"
end

def max_lines
Expand Down

0 comments on commit 6e3f704

Please sign in to comment.