fix: enable gofumpt instead of gofmt linter in client

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-10-17 22:21:33 +02:00
parent 3d6ff97709
commit 906247c8f9
22 changed files with 56 additions and 52 deletions

View File

@ -28,7 +28,7 @@ import (
const (
// PrivateFileMode grants owner to read/write a file.
PrivateFileMode = 0600
PrivateFileMode = 0o600
)
// IsDirWriteable checks if dir is writable by writing and removing a file
@ -125,7 +125,7 @@ func CheckDirPermission(dir string, perm os.FileMode) error {
if !Exist(dir) {
return fmt.Errorf("directory %q empty, cannot check permission", dir)
}
//check the existing permission on the directory
// check the existing permission on the directory
dirInfo, err := os.Stat(dir)
if err != nil {
return err