We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092bc46 commit 2bcd212Copy full SHA for 2bcd212
libs/filer/filer.go
@@ -18,7 +18,7 @@ type WriteMode int
18
const writeModePerm = WriteMode(fs.ModePerm)
19
20
const (
21
- OverwriteIfExists WriteMode = writeModePerm + 1<<iota
+ OverwriteIfExists WriteMode = (writeModePerm + 1) << iota
22
CreateParentDirectories
23
)
24
libs/filer/filer_test.go
@@ -8,4 +8,5 @@ import (
8
9
func TestWriteMode(t *testing.T) {
10
assert.Equal(t, 512, int(OverwriteIfExists))
11
+ assert.Equal(t, 1024, int(CreateParentDirectories))
12
}
0 commit comments