mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Don't bother with an exception that will never happen
Wasn't being caught anyways
This commit is contained in:
parent
94847e4a23
commit
e41993ac44
@ -60,6 +60,8 @@ namespace osu.Game.Graphics
|
||||
using (var bitmap = await host.TakeScreenshotAsync())
|
||||
{
|
||||
var fileName = getFileName();
|
||||
if (fileName == null) return;
|
||||
|
||||
var stream = storage.GetStream(fileName, FileAccess.Write);
|
||||
|
||||
switch (screenshotFormat.Value)
|
||||
@ -102,7 +104,7 @@ namespace osu.Game.Graphics
|
||||
return indexedName;
|
||||
}
|
||||
|
||||
throw new Exception($"Failed to find suitable file name for saving {fileExt} image");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user