Skip to content

Commit f3b9912

Browse files
mlinksvaCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent eeead20 commit f3b9912

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

script/check-approval

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

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

1619
def yes_no(value)
1720
value ? 'Yes'.green : 'No'.red

0 commit comments

Comments
 (0)