Skip to content

Commit

Permalink
backend/metadata_file: use writeFile here too
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Nov 1, 2022
1 parent 0db894a commit 7c5ad47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/metadata_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const metadataSuffix = ".metadata"
type metadataFile struct{}

func (m metadataFile) write(path string, encoded []byte) error {
return os.WriteFile(path+metadataSuffix, encoded, 0o600)
return writeFile(path+metadataSuffix, encoded, 0o600)
}

func (m metadataFile) read(path string) ([]byte, error) {
Expand Down

0 comments on commit 7c5ad47

Please sign in to comment.