mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Fixed inlining local-variable artifact.
This commit is contained in:
parent
d3afa53191
commit
1d1d7e8a37
1 changed files with 2 additions and 3 deletions
|
@ -209,9 +209,8 @@ namespace Emby.Server.Implementations.AppBase
|
||||||
protected void EnsureWriteAccess(string path)
|
protected void EnsureWriteAccess(string path)
|
||||||
{
|
{
|
||||||
var file = Path.Combine(path, Guid.NewGuid().ToString());
|
var file = Path.Combine(path, Guid.NewGuid().ToString());
|
||||||
|
|
||||||
string text = string.Empty;
|
File.WriteAllText(file, string.Empty);
|
||||||
File.WriteAllText(file, text);
|
|
||||||
FileSystem.DeleteFile(file);
|
FileSystem.DeleteFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue