Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shrsv committed Aug 6, 2023
1 parent f544e65 commit a98a39e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codegen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ type SnippetArgs struct {
SnippetCore string
}

var globalVm *goja.Runtime
var globalVM *goja.Runtime

func initialize() {
globalVm = cmdexec.GetJSVm()
globalVM = cmdexec.GetJSVm()
}

func PrepareHTTPSnippetGenerator(snippetArgs SnippetArgs) string {
Expand Down Expand Up @@ -97,7 +97,7 @@ func GetHARHeadersCookies(headers *gabs.Container) (*gabs.Container, *gabs.Conta
}

func GetRequestHARString(block *gabs.Container) string {
preprocess.ProcessVarsInBlock(block, globalVm)
preprocess.ProcessVarsInBlock(block, globalVM)
httpv := block.S("verb", "value")
url := block.S("url", "value")
jsonObj := block.S("details", "ip_data")
Expand Down

0 comments on commit a98a39e

Please sign in to comment.