mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Cleanup
This commit is contained in:
1 parent
963b2746f5
commit
65081b2f12
1 file changed
+2
-2
@@ -15,8 +15,8 @@ class JSONFormatter(FormatterPlugin):
|
||||
'javascript',
|
||||
'text',
|
||||
]
|
||||
if (any(token in mime for token in maybe_json) or
|
||||
self.kwargs['explicit_json']):
|
||||
if (self.kwargs['explicit_json'] or
|
||||
any(token in mime for token in maybe_json)):
|
||||
try:
|
||||
obj = json.loads(body)
|
||||
except ValueError:
|
||||
|
||||
Reference in new issue
Block a user