shorten code

This commit is contained in:
HolographicHat
2024-02-06 23:19:41 +08:00
committed by GitHub
parent d0b7d15894
commit cd0f49d83d

View File

@@ -39,13 +39,9 @@ try {
if (historyCache.LastWriteTime.AddMinutes(60) > DateTime.UtcNow && data != null) {
Console.WriteLine(App.UsePreviousData);
var text = Console.ReadLine();
if (text != null) {
text = text.ToUpper();
if (text == "Y" || text == "YES") {
Export.Choose(data);
return;
}
if (Console.ReadLine()?.ToUpper() is "Y" or "YES") {
Export.Choose(data);
return;
}
}
@@ -56,4 +52,4 @@ StartAndWaitResult(AppConfig.GamePath, str => {
historyCache.Write(bytes);
Export.Choose(list);
return true;
});
});