forked from TrueCloudLab/frostfs-node
[#772] node: Apply gofumpt
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
00aa6d9749
commit
79088baa06
136 changed files with 293 additions and 239 deletions
|
@ -15,7 +15,7 @@ type options struct {
|
|||
|
||||
func defaultOpts() *options {
|
||||
return &options{
|
||||
mode: 0700,
|
||||
mode: 0o700,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@ import "os"
|
|||
// but with +x for a user and a group. This makes the created
|
||||
// dir openable regardless of the passed permissions.
|
||||
func MkdirAllX(path string, perm os.FileMode) error {
|
||||
return os.MkdirAll(path, perm|0110)
|
||||
return os.MkdirAll(path, perm|0o110)
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ var stateBucket = []byte("state")
|
|||
|
||||
// NewPersistentStorage creates a new instance of a storage with 0600 rights.
|
||||
func NewPersistentStorage(path string) (*PersistentStorage, error) {
|
||||
db, err := bbolt.Open(path, 0600, nil)
|
||||
db, err := bbolt.Open(path, 0o600, nil)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't open bbolt at %s: %w", path, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue