fix lint errors
All checks were successful
Lint / golangci-lint (push) Successful in 10m4s
Declarative Tests / test (push) Successful in 1m16s

This commit is contained in:
Matthew Rich 2024-04-09 13:47:00 -07:00
parent f81df14be3
commit 01eaf00bb6

View File

@ -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()