Skip to content

Commit 13c6022

Browse files
committed
review: glue the Codec compile-time check to GenericCodec
1 parent cd129da commit 13c6022

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meta/json/codec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ type Codec interface {
1616
Encode(m *Model) ([]byte, error)
1717
}
1818

19-
var _ Codec = GenericCodec{}
20-
2119
type genericFile struct {
2220
Tables map[string]map[string]json.RawMessage `json:"tables"`
2321
}
2422

23+
var _ Codec = GenericCodec{}
24+
2525
// GenericCodec persists a Model as {"tables":{...}} for
2626
// namespaces with no legacy format (contract tests, future additions).
2727
// Insertion order is not preserved across reload: tables refill sorted by id.

0 commit comments

Comments
 (0)