Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeskydev committed Jul 26, 2023
1 parent 8e806e2 commit abb34fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Scripts/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit abb34fd

Please sign in to comment.