Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Aug 21, 2024
1 parent 5af1af0 commit 30e82e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/nolusd/root.go
Original file line number Diff line number Diff line change
@@ -641,7 +641,7 @@ func overwriteConfigTomlValues(serverCtx *server.Context) error {
}()

// Check if the file is writable
if fileInfo.Mode()&os.FileMode(0200) != 0 {
if fileInfo.Mode()&os.FileMode(0o200) != 0 {
// It will be re-read in server.InterceptConfigsPreRunHandler
// this may panic for permissions issues. So we catch the panic.
// Note that this exits with a non-zero exit code if fails to write the file.
@@ -701,7 +701,7 @@ func overwriteAppTomlValues(serverCtx *server.Context) error {
}

// Check if the file is writable
if fileInfo.Mode()&os.FileMode(0200) != 0 {
if fileInfo.Mode()&os.FileMode(0o200) != 0 {
// It will be re-read in server.InterceptConfigsPreRunHandler
// this may panic for permissions issues. So we catch the panic.
// Note that this exits with a non-zero exit code if fails to write the file.

0 comments on commit 30e82e4

Please sign in to comment.