style: address linter complaints
1 file changed, 5 insertions(+), 5 deletions(-)
changed files
M internal/index/index_meta.go → internal/index/index_meta.go
@@ -104,7 +104,7 @@ return nil } func (i *Meta) GetSourceMeta(source string) *SourceMeta { - sourceMeta := i.data.Sources[source] + sourceMeta := i.Sources[source] if sourceMeta == nil { return &SourceMeta{} }@@ -113,15 +113,15 @@ return sourceMeta } func (i *Meta) SetSourceMeta(source string, meta *SourceMeta) { - if i.data.Sources == nil { - i.data.Sources = make(map[string]*SourceMeta) + if i.Sources == nil { + i.Sources = make(map[string]*SourceMeta) } - i.data.Sources[source] = meta + i.Sources[source] = meta } func (i *Meta) LastUpdated() time.Time { var last time.Time - for _, sourceMeta := range i.data.Sources { + for _, sourceMeta := range i.Sources { if sourceMeta.Updated.After(last) { last = sourceMeta.Updated }