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() {
350350 log .Printf ("Autobuilder was built with %s, environment has %s\n " , runtime .Version (), getEnvGoVersion ())
351351
352352 srcdir := os .Getenv ("LGTM_SRC" )
353- inLGTM := srcdir != ""
354- if inLGTM {
353+ if srcdir != "" {
355354 log .Printf ("LGTM_SRC is %s\n " , srcdir )
356355 } else {
357356 cwd , err := os .Getwd ()
@@ -399,9 +398,7 @@ func main() {
399398 importpath := getImportPath ()
400399 needGopath := getNeedGopath (depMode , importpath )
401400
402- if os .Getenv ("LGTM_INDEX_NEED_GOPATH" ) != "" {
403- inLGTM = true
404- }
401+ inLGTM := os .Getenv ("LGTM_SRC" ) != "" || os .Getenv ("LGTM_INDEX_NEED_GOPATH" ) != ""
405402
406403 if inLGTM && needGopath {
407404 // a temporary directory where everything is moved while the correct
You can’t perform that action at this time.
0 commit comments