Commit 8f901c3635
Unsigned
Layout: unified · split
internal/episode_link_recovery_test.go +2 −2
| @@ -73,8 +73,8 @@ func TestPromptEpisodeLinkFailureRecoveryMapsExitKeysToBack(t *testing.T) { | ||
| 73 | 73 | withPromptSelect(t, func(options []SelectionOption) (SelectionOption, error) { |
| 74 | 74 | return SelectionOption{Key: "-1", Label: "Quit"}, nil |
| 75 | 75 | }) |
| 76 | if got := promptEpisodeLinkFailureRecovery(cfg, anime, errors.New("fail"), true); got != "back" { | |
| 77 | t.Fatalf("expected back for -1, got %q", got) | |
| 76 | if got := promptEpisodeLinkFailureRecovery(cfg, anime, errors.New("fail"), true); got != "quit" { | |
| 77 | t.Fatalf("expected quit for -1, got %q", got) | |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
internal/provider_mapping.go +1 −2
| @@ -893,8 +893,7 @@ func promptEpisodeLinkFailureRecovery(config *CurdConfig, anime *Anime, lastErr | ||
| 893 | 893 | } |
| 894 | 894 | selected = NormalizeSelectionKey(selected) |
| 895 | 895 | if SelectionMeansQuit(selected) { |
| 896 | ExitCurd(nil) | |
| 897 | return "back" | |
| 896 | return "quit" | |
| 898 | 897 | } |
| 899 | 898 | if SelectionMeansBack(selected) || selected.Key == "" { |
| 900 | 899 | return "back" |