Skip to content

Commit cf3b3d7

Browse files
committed
Fix caarlos0 test
1 parent 8a7e378 commit cf3b3d7

File tree

2 files changed

+5
-3
lines changed
  • go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/environment

2 files changed

+5
-3
lines changed

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/environment/test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ func caarlos0EnvironmentVariables() {
7878
}
7979

8080
cfg := config{}
81-
env.Parse(&cfg) // $ source
81+
err := env.Parse(&cfg) // $ source
8282

8383
fmt.Printf("HOME: %s\n", cfg.Home)
8484

85-
cfg = env.ParseAs[config]() // $ source
85+
cfg, err = env.ParseAs[config]() // $ source
8686

8787
fmt.Printf("HOME: %s\n", cfg.Home)
88-
}
88+
}

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/environment/vendor/github.com/caarlos0/env/stub.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)