Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Use if instead of switch
Browse files Browse the repository at this point in the history
This was to avoid linter issues.
  • Loading branch information
ankur22 committed Feb 29, 2024
1 parent e2a0ed0 commit d387982
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions browser/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,7 @@ func mapBrowserContext(vu moduleVU, bc *common.BrowserContext) mapping { //nolin
case reflect.TypeOf(goja.Object{}):
opts := script.ToObject(rt)
for _, k := range opts.Keys() {
switch k {
case "content":
if k == "content" {
source = opts.Get(k).String()
}
}
Expand Down

0 comments on commit d387982

Please sign in to comment.