Skip to content

Commit 2b6ded2

Browse files
authored
rubocop doesn't like redundant parens
1 parent aa82e97 commit 2b6ded2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ task :approved_licenses do
3232
puts approved.join(', ')
3333
puts "\n"
3434

35-
potential = approved - (licenses.map { |l| l['id'] })
35+
potential = approved - licenses.map { |l| l['id'] }
3636
puts "#{potential.count} potential additions:"
3737
puts potential.join(', ')
3838
end

spec/license_fields_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
context "The #{license['title']} license" do
88
it 'should only contain supported fillable fields' do
99
matches = license['content'][1, 1000].scan(/\s+\[([a-z_]+)\]/)
10-
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
10+
extra_fields = matches.flatten - fields.map { |f| f['name'] }
1111
expect(extra_fields).to be_empty
1212
end
1313
end

spec/license_meta_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
context "The #{license['title']} license" do
1111
it 'should only contain supported meta fields' do
12-
extra_fields = raw_fields.keys - (meta.map { |m| m['name'] })
12+
extra_fields = raw_fields.keys - meta.map { |m| m['name'] }
1313
expect(extra_fields).to be_empty
1414
end
1515

0 commit comments

Comments
 (0)