File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -350,8 +350,7 @@ func main() {
350
350
log .Printf ("Autobuilder was built with %s, environment has %s\n " , runtime .Version (), getEnvGoVersion ())
351
351
352
352
srcdir := os .Getenv ("LGTM_SRC" )
353
- inLGTM := srcdir != ""
354
- if inLGTM {
353
+ if srcdir != "" {
355
354
log .Printf ("LGTM_SRC is %s\n " , srcdir )
356
355
} else {
357
356
cwd , err := os .Getwd ()
@@ -399,9 +398,7 @@ func main() {
399
398
importpath := getImportPath ()
400
399
needGopath := getNeedGopath (depMode , importpath )
401
400
402
- if os .Getenv ("LGTM_INDEX_NEED_GOPATH" ) != "" {
403
- inLGTM = true
404
- }
401
+ inLGTM := os .Getenv ("LGTM_SRC" ) != "" || os .Getenv ("LGTM_INDEX_NEED_GOPATH" ) != ""
405
402
406
403
if inLGTM && needGopath {
407
404
// a temporary directory where everything is moved while the correct
You can’t perform that action at this time.
0 commit comments