Skip to content

Commit 6edb457

Browse files
committed
Fix Rubocop offenses
1 parent ae35586 commit 6edb457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/crono/cli.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def parse_options(args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
8585
end
8686

8787
opts.on '-v', '--verbose', 'Print more verbose output' do |verbose|
88-
config.verbose = verbose.nil? ? true : verbose
88+
config.verbose = verbose.nil? || verbose
8989
end
9090
end
9191
parser.parse!(args)
@@ -151,6 +151,7 @@ def launch(self_read) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
151151
# Heroku sends TERM and then waits 30 seconds for process to exit.
152152
'TERM' => ->(_cli) { raise Interrupt },
153153
}.freeze
154+
private_constant :SIGNAL_HANDLERS
154155

155156
def handle_signal(sig)
156157
logger.debug "Got #{sig} signal"

0 commit comments

Comments
 (0)