We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e95dd commit bfd9665Copy full SHA for bfd9665
src/app.rb
@@ -79,6 +79,6 @@ def self.response_message(result, data, exit_code)
79
def self.parse_data(data)
80
JSON.parse(data)
81
rescue JSON::ParserError
82
- data
+ data.respond_to?(:strip) ? data.strip : data
83
end
84
0 commit comments