Skip to content

Commit 8cbd3c8

Browse files
authored
Fixed linting issues
1 parent 698a673 commit 8cbd3c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/generateCode/targets/python.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function parseBody(body) {
2020
}
2121

2222
if (mime === 'application/json' && body.text) {
23-
return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}`;
23+
return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}\n\nfiles = null`;
2424
}
2525

2626
return body.text
27-
? `payload = '${body.text}'`
28-
: null;
27+
? `payload = '${body.text}\n\nfiles = null`
28+
: 'files = null';
2929
}
3030

3131
export default function python(url, req) {

0 commit comments

Comments
 (0)