mirror of https://github.com/databricks/cli.git
Maintain mask invariant
This commit is contained in:
parent
092bc46976
commit
2bcd212531
|
@ -18,7 +18,7 @@ type WriteMode int
|
|||
const writeModePerm = WriteMode(fs.ModePerm)
|
||||
|
||||
const (
|
||||
OverwriteIfExists WriteMode = writeModePerm + 1<<iota
|
||||
OverwriteIfExists WriteMode = (writeModePerm + 1) << iota
|
||||
CreateParentDirectories
|
||||
)
|
||||
|
||||
|
|
|
@ -8,4 +8,5 @@ import (
|
|||
|
||||
func TestWriteMode(t *testing.T) {
|
||||
assert.Equal(t, 512, int(OverwriteIfExists))
|
||||
assert.Equal(t, 1024, int(CreateParentDirectories))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue