fix: correct indentation on codegen

This commit is contained in:
Andrew Bastin
2021-12-30 13:24:17 +05:30
parent f8bbf6613f
commit aa4fedb71c

View File

@@ -204,7 +204,9 @@ export const generateCode = (
// Returns a string if valid, false if not
new HTTPSnippet({
...buildHarRequest(req),
}).convert(codegenInfo.lang, codegenInfo.mode)
}).convert(codegenInfo.lang, codegenInfo.mode, {
indent: " ",
})
),
// Only allow string output to pass through, else none