chore: format Go more aggressively

This commit is contained in:
Ammar Bandukwala
2023-02-18 18:32:09 -06:00
committed by GitHub
parent 19ae411f05
commit f05609b4da
97 changed files with 411 additions and 413 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ func Archive(exampleID string) ([]byte, error) {
return xerrors.Errorf("get file header: %w", err)
}
header.Name = strings.TrimPrefix(path, "./")
header.Mode = 0644
header.Mode = 0o644
if entry.IsDir() {
// Trailing slash on entry name is not required. Our tar
@@ -199,7 +199,7 @@ func Archive(exampleID string) ([]byte, error) {
// include slashes so this we don't include them here for
// consistency.
// header.Name += "/"
header.Mode = 0755
header.Mode = 0o755
header.Typeflag = tar.TypeDir
err = tarWriter.WriteHeader(header)
if err != nil {