We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edcdf4c commit 3270b75Copy full SHA for 3270b75
lib/process_executer/options/base.rb
@@ -268,7 +268,7 @@ def assert_no_unknown_options
268
269
raise(
270
ArgumentError,
271
- "Unknown option#{unknown_options.count > 1 ? 's' : ''}: #{unknown_options.join(', ')}"
+ "Unknown option#{'s' if unknown_options.count > 1}: #{unknown_options.join(', ')}"
272
)
273
end
274
lib/process_executer/result.rb
@@ -102,7 +102,7 @@ def success?
102
# @return [String]
103
#
104
def to_s
105
- "#{super}#{timed_out? ? " timed out after #{options.timeout_after}s" : ''}"
+ "#{super}#{" timed out after #{options.timeout_after}s" if timed_out?}"
106
107
108
0 commit comments