Skip to content

Commit 3270b75

Browse files
committed
fix: fix new rubocop offense Style/EmptyStringInsideInterpolation
1 parent edcdf4c commit 3270b75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/process_executer/options/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def assert_no_unknown_options
268268

269269
raise(
270270
ArgumentError,
271-
"Unknown option#{unknown_options.count > 1 ? 's' : ''}: #{unknown_options.join(', ')}"
271+
"Unknown option#{'s' if unknown_options.count > 1}: #{unknown_options.join(', ')}"
272272
)
273273
end
274274
end

lib/process_executer/result.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def success?
102102
# @return [String]
103103
#
104104
def to_s
105-
"#{super}#{timed_out? ? " timed out after #{options.timeout_after}s" : ''}"
105+
"#{super}#{" timed out after #{options.timeout_after}s" if timed_out?}"
106106
end
107107
end
108108
end

0 commit comments

Comments
 (0)