Skip to content

Commit 921cbe1

Browse files
committed
fit: gofumpt
1 parent 5fc90cd commit 921cbe1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

fuzz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build gofuzz
12
// +build gofuzz
23

34
package fit

reader_util_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func fitFingerprint(fit *fit.File) uint64 {
2323
}
2424

2525
func fitUtterDump(fit *fit.File, path string, compressed bool) error {
26-
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
26+
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
2727
if err != nil {
2828
return err
2929
}
@@ -129,7 +129,7 @@ var decodeTestFiles = [...]struct {
129129
return fmt.Errorf("format.Source: %v on\n%s", err, preFormat)
130130
}
131131

132-
return ioutil.WriteFile("reader_files_test.go", src, 0644)
132+
return ioutil.WriteFile("reader_files_test.go", src, 0o644)
133133
}
134134

135135
type gen struct {

tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build tools
12
// +build tools
23

34
package fit

0 commit comments

Comments
 (0)