From 01eaf00bb6a8e09287c34dfee6b3484ff5cb3065 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Tue, 9 Apr 2024 13:47:00 -0700 Subject: [PATCH] fix lint errors --- internal/resource/package.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/resource/package.go b/internal/resource/package.go index 35a576c..5b6c7e9 100644 --- a/internal/resource/package.go +++ b/internal/resource/package.go @@ -132,8 +132,8 @@ func (p *Package) Apply() error { return err } - p.Read(context.Background()) - return nil + _,e := p.Read(context.Background()) + return e } func (p *Package) Load(r io.Reader) error { @@ -161,7 +161,7 @@ func (p *Package) Read(ctx context.Context) ([]byte, error) { } func (p *Package) UnmarshalJSON(data []byte) error { - if unmarshalErr := json.Unmarshal(data, *p); unmarshalErr != nil { + if unmarshalErr := json.Unmarshal(data, p); unmarshalErr != nil { return unmarshalErr } p.CreateCommand, p.ReadCommand, p.UpdateCommand, p.DeleteCommand = p.PackageType.NewCRUD()