Skip to content

Commit

Permalink
use fmt for better readibility
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jan 18, 2021
1 parent 01a3ea2 commit fd77492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/fs/ocis/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd77492

Please sign in to comment.