style(*): fix lint issues

This commit is contained in:
Nightapes
2019-06-15 23:16:30 +02:00
parent cf0431846b
commit efcea0fafd
8 changed files with 36 additions and 34 deletions

View File

@@ -2,7 +2,6 @@ package releaser
import (
"fmt"
"os"
"github.com/Nightapes/go-semantic-release/internal/releaser/github"
"github.com/Nightapes/go-semantic-release/internal/shared"
@@ -37,22 +36,22 @@ func (r *Releasers) GetReleaser() (Releaser, error) {
case github.GITHUB:
return github.New(&r.config.GitHubProvider)
}
return nil, fmt.Errorf("Could not initialize a releaser from this type: %s", r.config.Release)
return nil, fmt.Errorf("could not initialize a releaser from this type: %s", r.config.Release)
}
func checkIfAssetsExists(assets []config.Asset) error {
var missingAssets []string
for _, asset := range assets {
// func checkIfAssetsExists(assets []config.Asset) error {
// var missingAssets []string
// for _, asset := range assets {
if _, err := os.Stat(asset.Name); err != nil {
missingAssets = append(missingAssets, asset.Name)
}
}
// if _, err := os.Stat(asset.Name); err != nil {
// missingAssets = append(missingAssets, asset.Name)
// }
// }
if len(missingAssets) != 0 {
return fmt.Errorf("Could not find specified Asset: %+v ", assets)
}
// if len(missingAssets) != 0 {
// return fmt.Errorf("could not find specified Asset: %+v ", assets)
// }
return nil
// return nil
}
// }