Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
修改方法名称
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky8955555 committed May 16, 2021
1 parent 3d38ac4 commit 82d2b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/SystemExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public static Exception ShowAndLog(this Exception ex, Logger logger, bool termin
return ex;
}

public static string CheckEmpty(this string str) => string.IsNullOrEmpty(str) ? null : str;
public static string IsEmptyOrNull(this string str) => string.IsNullOrEmpty(str) ? null : str;
}
}
2 changes: 1 addition & 1 deletion src/Utilities/FolderBrowserDialogUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static string GetFilePath(string description = "")
var dialog = new FolderBrowserDialog() { Description = description };
dialog.ShowDialog();

return dialog.SelectedPath.CheckEmpty();
return dialog.SelectedPath.IsEmptyOrNull();
}
}
}

0 comments on commit 82d2b17

Please sign in to comment.