diff --git a/go/cmd/dolt/commands/stashcmds/stash.go b/go/cmd/dolt/commands/stashcmds/stash.go index b69aea1d5b..4bee6335cf 100644 --- a/go/cmd/dolt/commands/stashcmds/stash.go +++ b/go/cmd/dolt/commands/stashcmds/stash.go @@ -296,13 +296,14 @@ func workingSetContainsOnlyIgnoredTables(ctx context.Context, roots doltdb.Roots for _, tableDelta := range unstaged { if !(tableDelta.IsAdd()) { - isIgnored, err := ignorePatterns.IsTableNameIgnored(tableDelta.ToName) - if err != nil { - return false, err - } - if !isIgnored { - return false, nil - } + return false, nil + } + isIgnored, err := ignorePatterns.IsTableNameIgnored(tableDelta.ToName) + if err != nil { + return false, err + } + if !isIgnored { + return false, nil } }