Skip to content

Commit

Permalink
Fix Style/ParallelAssignment offense
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jan 21, 2024
1 parent 370b668 commit 41e5faf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/hawk/model/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def after_schema(&block)

class Caster
def initialize(type, code)
@type, @code = type, code
@type = type
@code = code
end
attr_reader :type

Expand Down
3 changes: 2 additions & 1 deletion lib/hawk/rake/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module Utils
# @return [String] the captured output
#
def capture_stdout
stdout, string = $stdout, StringIO.new
stdout = $stdout
string = StringIO.new
$stdout = string

yield
Expand Down

0 comments on commit 41e5faf

Please sign in to comment.