Skip to content

Commit 8f43033

Browse files
committed
concise var reuse
1 parent dadb187 commit 8f43033

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/submit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func runSubmit(cfg *config.Config, opts *submitOptions) error {
7979

8080
// Verify that the repository has stacked PRs enabled.
8181
stacksAvailable := s.ID != ""
82-
if s.ID == "" {
82+
if !stacksAvailable {
8383
if _, err := client.ListStacks(); err != nil {
8484
cfg.Warningf("Stacked PRs are not enabled for this repository")
8585
if cfg.IsInteractive() {

0 commit comments

Comments
 (0)