Fix linter issue #330

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/linter_revive into master 2023-05-05 15:07:17 +00:00

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)
}