Skip to content

Commit bfd9665

Browse files
committed
Strip newline for string output
1 parent 42e95dd commit bfd9665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ def self.response_message(result, data, exit_code)
7979
def self.parse_data(data)
8080
JSON.parse(data)
8181
rescue JSON::ParserError
82-
data
82+
data.respond_to?(:strip) ? data.strip : data
8383
end
8484
end

0 commit comments

Comments
 (0)