Skip to content

Commit

Permalink
Fixing linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Oct 9, 2023
1 parent 0022e35 commit bbeec00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tax/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewZoneStore(fs embed.FS, filename string) *ZoneStore {
}

// JSONSchemaAlias provides the real object that should be defined in the schemas.
func (ZoneStore) JSONSchemaAlias() any { //nolint:copylocks
func (ZoneStore) JSONSchemaAlias() any { //nolint:govet
return []*Zone{}
}

Expand Down Expand Up @@ -130,6 +130,7 @@ func (s *ZoneStore) List() []*Zone {
return s.data.Zones
}

// MarshalJSON ensures the zone data is loaded before marshaling.
func (s *ZoneStore) MarshalJSON() ([]byte, error) {
s.load()
return json.Marshal(s.data.Zones)
Expand Down

0 comments on commit bbeec00

Please sign in to comment.