[#330] morph: Fix linter issue
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/push/pre-commit Pipeline was successful

Revive became smarter after go 1.20.4 upgrade.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-05-05 17:59:51 +03:00
parent 973af12854
commit d02950ad63

View file

@ -402,9 +402,8 @@ func (c *initializeContext) readContracts(names []string) error {
var r io.ReadCloser
if c.ContractPath == "" {
return errors.New("contracts flag is missing")
} else {
r, err = os.Open(c.ContractPath)
}
r, err = os.Open(c.ContractPath)
if err != nil {
return fmt.Errorf("can't open contracts archive: %w", err)
}