Skip to content

Commit

Permalink
Correct Style/Semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 12, 2020
1 parent 08ea367 commit 1857a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,3 @@ Style/RegexpLiteral:
Exclude:
- 'lib/aruba/cucumber/command.rb'
- 'lib/aruba/cucumber/file.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'lib/aruba/platforms/aruba_fixed_size_file_creator.rb'
5 changes: 4 additions & 1 deletion lib/aruba/platforms/aruba_fixed_size_file_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def call(path, size, check_presence)

Aruba.platform.mkdir(File.dirname(path))

File.open(path, 'wb') { |f| f.seek(size - 1); f.write("\0") }
File.open(path, 'wb') do |f|
f.seek(size - 1)
f.write("\0")
end

self
end
Expand Down

0 comments on commit 1857a3f

Please sign in to comment.