Skip to content

Commit fc0190d

Browse files
authored
Fix JSON struct tag for FileMeta (#172)
This looks like it was typoed.
1 parent e8b63d2 commit fc0190d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ func (r *Role) AddKeyIDs(ids []string) bool {
149149
type Files map[string]FileMeta
150150

151151
type FileMeta struct {
152-
Length int64 `json:"length",omitempty`
153-
Hashes Hashes `json:"hashes",omitempty`
152+
Length int64 `json:"length,omitempty"`
153+
Hashes Hashes `json:"hashes,omitempty"`
154154
Custom *json.RawMessage `json:"custom,omitempty"`
155155
}
156156

0 commit comments

Comments
 (0)