Skip to content

Commit 4e0894a

Browse files
author
LoneWandererProductions
committed
fix naming
1 parent cb7da7d commit 4e0894a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

FileHandler/FileHandleSafeDelete.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static class FileHandleSafeDelete
2929
/// <param name="path">The path of the file to delete.</param>
3030
/// <returns>True if the file was successfully deleted; otherwise, false.</returns>
3131
/// <exception cref="FileHandlerException">Thrown when the path is empty or null.</exception>
32-
public static async Task<bool> DeleteFileAsync(string path)
32+
public static async Task<bool> DeleteFile(string path)
3333
{
3434
if (string.IsNullOrEmpty(path))
3535
throw new FileHandlerException(FileHandlerResources.ErrorEmptyString);
@@ -42,7 +42,7 @@ public static async Task<bool> DeleteFileAsync(string path)
4242
{
4343
var ex = new Exception($"{FileHandlerResources.ErrorLock}{path}");
4444
Trace.WriteLine(ex);
45-
FileHandlerRegister.AddError(nameof(DeleteFileAsync), path, ex);
45+
FileHandlerRegister.AddError(nameof(DeleteFile), path, ex);
4646
return false;
4747
}
4848

@@ -52,13 +52,13 @@ public static async Task<bool> DeleteFileAsync(string path)
5252
}
5353
catch (UnauthorizedAccessException ex)
5454
{
55-
FileHandlerRegister.AddError(nameof(DeleteFileAsync), path, ex);
55+
FileHandlerRegister.AddError(nameof(DeleteFile), path, ex);
5656
Trace.WriteLine(ex);
5757
return false;
5858
}
5959
catch (IOException ex)
6060
{
61-
FileHandlerRegister.AddError(nameof(DeleteFileAsync), path, ex);
61+
FileHandlerRegister.AddError(nameof(DeleteFile), path, ex);
6262
Trace.WriteLine(ex);
6363
return false;
6464
}

0 commit comments

Comments
 (0)