Skip to content

Commit

Permalink
Switch the then clause to its own line
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein authored and postmodern committed Jan 10, 2022
1 parent 781c4f3 commit 245a2b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bundler-audit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Gem::Specification.new do |gem|

glob = lambda { |patterns| gem.files & Dir[*patterns] }

gem.files = if gemspec['files'] then glob[gemspec['files']]
gem.files = if gemspec['files']
glob[gemspec['files']]
else
`git ls-files`.split($/)
end
Expand Down
3 changes: 2 additions & 1 deletion lib/bundler/audit/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def check(dir=Dir.pwd)

report = scanner.report(ignore: options.ignore)

output = if options[:output] then File.new(options[:output],'w')
output = if options[:output]
File.new(options[:output],'w')
else
$stdout
end
Expand Down
3 changes: 2 additions & 1 deletion lib/bundler/audit/scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def scan_sources(options={})
def scan_specs(options={})
return enum_for(__method__,options) unless block_given?

ignore = if options[:ignore] then Set.new(options[:ignore])
ignore = if options[:ignore]
Set.new(options[:ignore])
else
config.ignore
end
Expand Down

0 comments on commit 245a2b6

Please sign in to comment.