You've already forked go-semantic-release
style(*): fix lint issues
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user