mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Avoid throwing exceptions when MutatePath is called with null path
This commit is contained in:
@ -25,7 +25,7 @@ namespace osu.Game.IO
|
||||
this.subPath = subPath;
|
||||
}
|
||||
|
||||
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) ? Path.Combine(subPath, path) : path;
|
||||
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) && !string.IsNullOrEmpty(path) ? Path.Combine(subPath, path) : path;
|
||||
|
||||
protected virtual void ChangeTargetStorage(Storage newStorage)
|
||||
{
|
||||
|
Reference in New Issue
Block a user