[#330] morph: Fix linter issue
Revive became smarter after go 1.20.4 upgrade. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
973af12854
commit
d02950ad63
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue