Lint, ES6, popover for codegen

This commit is contained in:
Liyas Thomas
2020-10-19 18:02:42 +05:30
parent 59974edf80
commit eaeefafe39
12 changed files with 97 additions and 80 deletions

View File

@@ -18,7 +18,7 @@ export const PowerShellRestMethod = {
}) => {
const methodsWithBody = ["Put", "Post", "Delete"]
const formattedMethod = method[0].toUpperCase() + method.substring(1).toLowerCase()
const includeBody = methodsWithBody.indexOf(formattedMethod) >= 0
const includeBody = methodsWithBody.includes(formattedMethod)
const requestString = []
let genHeaders = []
let variables = ""