summaryrefslogtreecommitdiffstats
path: root/build/generate-gitignores.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/generate-gitignores.go')
-rw-r--r--build/generate-gitignores.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/build/generate-gitignores.go b/build/generate-gitignores.go
index 811953ee4a..0f7d719d40 100644
--- a/build/generate-gitignores.go
+++ b/build/generate-gitignores.go
@@ -34,7 +34,6 @@ func main() {
flag.Parse()
file, err := os.CreateTemp(os.TempDir(), prefix)
-
if err != nil {
log.Fatalf("Failed to create temp file. %s", err)
}
@@ -65,7 +64,6 @@ func main() {
}
gz, err := gzip.NewReader(file)
-
if err != nil {
log.Fatalf("Failed to gunzip the archive. %s", err)
}
@@ -96,7 +94,6 @@ func main() {
}
out, err := os.Create(path.Join(destination, strings.TrimSuffix(filepath.Base(hdr.Name), ".gitignore")))
-
if err != nil {
log.Fatalf("Failed to create new file. %s", err)
}
@@ -119,7 +116,7 @@ func main() {
}
// Write data to dst
dst = path.Join(destination, dst)
- err = os.WriteFile(dst, data, 0644)
+ err = os.WriteFile(dst, data, 0o644)
if err != nil {
log.Fatalf("Failed to write new file. %s", err)
}