Skip to content

Commit 20d8532

Browse files
committed
rubocop suggestions
1 parent c5fa06a commit 20d8532

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

script/check-approval

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require 'colored'
1111
require 'fuzzy_match'
1212

1313
# Display usage instructions
14-
puts File.open(__FILE__).read.scan(/^# .*/)[0...3].join("\n").gsub(/^# /, '') if ARGV.count != 1
14+
puts File.read(__FILE__).scan(/^# .*/)[0...3].join("\n").gsub(/^# /, '') if ARGV.count != 1
1515

1616
class TrueClass
1717
def to_s

spec/license_bom_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Dir["#{licenses_path}/*.txt"].each do |file|
77
context "the #{File.basename(file, '.txt')} license" do
88
it 'does not begin with a byte order mark' do
9-
bom = File.open(file).read.start_with?("\u0000EF\u0000BB\u0000BF")
9+
bom = File.read(file).start_with?("\u0000EF\u0000BB\u0000BF")
1010
msg = 'License file begins with a Byte Order Mark. See https://stackoverflow.com/a/1068700.'
1111
expect(bom).to eql(false), msg
1212
end

0 commit comments

Comments
 (0)