Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wavpro authored Aug 13, 2022
1 parent 698a673 commit 8cbd3c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/generateCode/targets/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function parseBody(body) {
}

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

return body.text
? `payload = '${body.text}'`
: null;
? `payload = '${body.text}\n\nfiles = null`
: 'files = null';
}

export default function python(url, req) {
Expand Down

0 comments on commit 8cbd3c8

Please sign in to comment.