mirror of https://github.com/ppy/osu
Avoid throwing exceptions when MutatePath is called with null path
This commit is contained in:
parent
faf9b0a528
commit
218cc39a4c
|
@ -25,7 +25,7 @@ public WrappedStorage(Storage underlyingStorage, string subPath = null)
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue