From 7c5ad479a49de74439a184c4767b9a1d3a1791bd Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Mon, 31 Oct 2022 21:44:08 -0400 Subject: [PATCH] backend/metadata_file: use writeFile here too --- internal/backend/metadata_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/metadata_file.go b/internal/backend/metadata_file.go index 03682b5fa3..94cce654a8 100644 --- a/internal/backend/metadata_file.go +++ b/internal/backend/metadata_file.go @@ -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) {