diff options
Diffstat (limited to 'build/generate-gitignores.go')
-rw-r--r-- | build/generate-gitignores.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/generate-gitignores.go b/build/generate-gitignores.go index 0f56ff3a89..f341c1ec48 100644 --- a/build/generate-gitignores.go +++ b/build/generate-gitignores.go @@ -15,6 +15,8 @@ import ( "path" "path/filepath" "strings" + + "code.gitea.io/gitea/modules/util" ) func main() { @@ -33,7 +35,7 @@ func main() { log.Fatalf("Failed to create temp file. %s", err) } - defer os.Remove(file.Name()) + defer util.Remove(file.Name()) resp, err := http.Get(url) |