diff --git a/cmd/slugcmplr/release.go b/cmd/slugcmplr/release.go index 20aea2b1..394d462b 100644 --- a/cmd/slugcmplr/release.go +++ b/cmd/slugcmplr/release.go @@ -45,18 +45,18 @@ func releaseCmd(verbose bool) *cobra.Command { return fmt.Errorf("failed to decode release data: %w", err) } - if application == "" { - application = r.Application + if application != "" { + r.Application = application } - log(out, "application: %v", application) + log(out, "application: %v", r.Application) log(out, "slug: %v", r.Slug) step(out, "Releasing slug %v to %v", r.Slug, r.Application) releaseCmd := &slugcmplr.ReleaseCmd{ Heroku: h, - Application: application, + Application: r.Application, SlugID: r.Slug, Commit: r.Commit, } diff --git a/shared.go b/shared.go index f7058fd7..8dc2f215 100644 --- a/shared.go +++ b/shared.go @@ -10,7 +10,6 @@ import ( "io/fs" "os" "path/filepath" - "strings" git "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing"