fix lint errors
This commit is contained in:
parent
f81df14be3
commit
01eaf00bb6
@ -132,8 +132,8 @@ func (p *Package) Apply() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
p.Read(context.Background())
|
_,e := p.Read(context.Background())
|
||||||
return nil
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Package) Load(r io.Reader) error {
|
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 {
|
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
|
return unmarshalErr
|
||||||
}
|
}
|
||||||
p.CreateCommand, p.ReadCommand, p.UpdateCommand, p.DeleteCommand = p.PackageType.NewCRUD()
|
p.CreateCommand, p.ReadCommand, p.UpdateCommand, p.DeleteCommand = p.PackageType.NewCRUD()
|
||||||
|
Loading…
Reference in New Issue
Block a user