Skip to content

Commit

Permalink
Remove redundant log
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Sep 23, 2024
1 parent 66493f0 commit 48b9be7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/cliutils/persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ func setPersistenceInfo(info *PersistenceFile) error {
return errorutils.CheckErrorf("failed while attempting to create persistence file: " + err.Error())
}

err = os.WriteFile(persistenceFilePath, data, 0644)
if err != nil {
if err = os.WriteFile(persistenceFilePath, data, 0644); err != nil {
return errorutils.CheckErrorf("failed while attempting to write persistence file: " + err.Error())
}
return nil
Expand Down

0 comments on commit 48b9be7

Please sign in to comment.