From bbeec00556d2c27dac2ade5cb9711f48ed159ff3 Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 5 Oct 2023 09:06:26 +0000 Subject: [PATCH] Fixing linter issues --- tax/zone.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tax/zone.go b/tax/zone.go index db491a06..882f0341 100644 --- a/tax/zone.go +++ b/tax/zone.go @@ -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{} } @@ -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)