diff --git a/Assets/Scripts/App.cs b/Assets/Scripts/App.cs index c86d5775c5..0cbba3e60c 100644 --- a/Assets/Scripts/App.cs +++ b/Assets/Scripts/App.cs @@ -1960,17 +1960,17 @@ private static string SafeFileName(string path, int counter = 0) { var newName = path; - if(counter != 0) + if (counter != 0) { - newName = $"{Path.GetFileNameWithoutExtension(path)}.{counter+1}.{Path.GetExtension(path)}"; + newName = $"{Path.GetFileNameWithoutExtension(path)}.{counter + 1}.{Path.GetExtension(path)}"; } - if(!File.Exists(newName)) + if (!File.Exists(newName)) { return newName; } - return SafeFileName(path, counter+1); + return SafeFileName(path, counter + 1); } // Return path of root directory for storing user sketches, snapshots, etc.