Skip to content

Commit 5f36556

Browse files
committed
Fix an offence conflict to appease both cops
IfUnlessModifier insists on using the inline form, but it clearly knows it won't fit its correction in LineLength's constraints and keeps silent. Its offence is only visible with the default 120 LineLength. There is a number of offences like this, frankly I didn't look to close, but this specific change appeals to me.
1 parent a46f7b8 commit 5f36556

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ task confirm_config: :build_config do
4242
_, stdout, _, process =
4343
Open3.popen3('git diff --exit-code config/default.yml')
4444

45-
unless process.value.success?
46-
raise "default.yml is out of sync:\n\n#{stdout.read}\nRun bin/build_config"
47-
end
45+
raise <<~ERROR unless process.value.success?
46+
default.yml is out of sync:
47+
48+
#{stdout.read}
49+
Run bin/build_config
50+
ERROR
4851
end
4952

5053
desc 'Confirm documentation is up to date'

0 commit comments

Comments
 (0)