gosick #1

Merged
DelphicOkami merged 162 commits from gosick into main 2026-03-21 23:08:00 +00:00
Showing only changes of commit 8f51cf368a - Show all commits

View File

@@ -266,8 +266,12 @@ func (a *App) confirmDestroy(castle string) (bool, error) {
return false, err
}
response := strings.ToLower(strings.TrimSpace(line))
return response == "y" || response == "yes", nil
return isAffirmativeResponse(line), nil
}
func isAffirmativeResponse(input string) bool {
response := strings.ToLower(strings.TrimSpace(input))
return response == "y" || response == "yes"
}
func (a *App) Open(castle string) error {