refactor: remove unneeded if

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2021-09-01 23:17:01 -03:00
parent 0e54c8d882
commit 19cd0e2289
-3
View File
@@ -62,9 +62,6 @@ func (Pipe) Run(ctx *context.Context) (err error) {
}
for name, path := range extraFiles {
if _, err := os.Stat(path); os.IsNotExist(err) {
return fmt.Errorf("failed to checksum %s: %w", name, err)
}
artifactList = append(artifactList, &artifact.Artifact{
Name: name,
Path: path,