1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

Use string interpolation for test string

Closes #9696
This commit is contained in:
Bogdan 2024-01-27 18:13:37 +02:00
parent a70fa0fcfe
commit f93e136386

View File

@ -130,7 +130,7 @@ public bool FolderWritable(string path)
try try
{ {
var testPath = Path.Combine(path, "radarr_write_test.txt"); var testPath = Path.Combine(path, "radarr_write_test.txt");
var testContent = string.Format("This file was created to verify if '{0}' is writable. It should've been automatically deleted. Feel free to delete it.", path); var testContent = $"This file was created to verify if '{path}' is writable. It should've been automatically deleted. Feel free to delete it.";
WriteAllText(testPath, testContent); WriteAllText(testPath, testContent);
File.Delete(testPath); File.Delete(testPath);
return true; return true;