From dc2e3c7b2b3c96c7bc1fd0daa15b42319c3d0e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 18 Jan 2021 14:12:20 +0000 Subject: [PATCH] use fmt for better readibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/storage/fs/ocis/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/fs/ocis/node.go b/pkg/storage/fs/ocis/node.go index 30bde6822d..a81ce8c916 100644 --- a/pkg/storage/fs/ocis/node.go +++ b/pkg/storage/fs/ocis/node.go @@ -345,7 +345,7 @@ func calculateEtag(nodeID string, tmTime time.Time) (string, error) { } else { return "", err } - return `"` + hex.EncodeToString(h.Sum(nil)) + `"`, nil + return fmt.Sprintf(`"%x"`, h.Sum(nil)), nil } // SetMtime sets the mtime and atime of a node