Skip to content

Commit

Permalink
Go: Initialise filesToRemove to an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Feb 1, 2024
1 parent e29d4e2 commit 1a2e829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/extractor/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func checkDirsNested(inputDirs []string) (string, bool) {
}

// A list of files we created that should be removed after we are done.
var filesToRemove []string
var filesToRemove []string = []string{}

// Try to initialize a go.mod file for projects that do not already have one.
func initGoModForLegacyProject(path string) {
Expand Down Expand Up @@ -148,7 +148,7 @@ func RemoveTemporaryExtractorFiles() {
}
}

filesToRemove = nil
filesToRemove = []string{}
}

// Find all go.work files in the working directory and its subdirectories
Expand Down

0 comments on commit 1a2e829

Please sign in to comment.