Fix linter issue #330
1 changed files with 1 additions and 2 deletions
|
@ -402,9 +402,8 @@ func (c *initializeContext) readContracts(names []string) error {
|
||||||
var r io.ReadCloser
|
var r io.ReadCloser
|
||||||
if c.ContractPath == "" {
|
if c.ContractPath == "" {
|
||||||
return errors.New("contracts flag is missing")
|
return errors.New("contracts flag is missing")
|
||||||
} else {
|
|
||||||
r, err = os.Open(c.ContractPath)
|
|
||||||
}
|
}
|
||||||
|
r, err = os.Open(c.ContractPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("can't open contracts archive: %w", err)
|
return fmt.Errorf("can't open contracts archive: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue