Skip to content

Commit 0a530e7

Browse files
authored
Fix rubocop offence (#71)
1 parent 35b27ca commit 0a530e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/init-cluster

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class API
6666

6767
def decode_response(response)
6868
payload =
69-
if /application\/json/.match?(response['content-type'])
69+
if response['content-type'].include?('application/json')
7070
JSON.parse(response.body)
7171
else
7272
response.body

0 commit comments

Comments
 (0)