mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-13 18:08:15 +08:00
shorten code
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user