Skip to content

Commit

Permalink
rubocop: fix Security/IoMethod, RSpec/ExcessiveDocstringSpacing cops
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo committed Oct 6, 2021
1 parent beb8f33 commit 12fca79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/airbrake-ruby/filters/git_last_checkout_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def last_checkout_line
return unless File.exist?(head_path)

last_line = nil
IO.foreach(head_path) do |line|
File.foreach(head_path) do |line|
last_line = line if checkout_line?(line)
end
last_line
Expand Down
2 changes: 1 addition & 1 deletion spec/filters/git_revision_filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
end
end

context "and also when HEAD starts with 'ref: " do
context "and also when HEAD starts with 'ref: '" do
before do
allow(File).to(
receive(:read).with('root/dir/.git/HEAD').and_return("ref: refs/foo\n"),
Expand Down

0 comments on commit 12fca79

Please sign in to comment.