Fixing a bug with mosh links. (#407)
This commit is contained in:
1 parent
8ec0d58065
commit
94855b7487
5 files changed
+23
-12
No files matched your search
@@ -0,0 +1,12 @@
|
||||
namespace FluentTerminal.Models
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Compares two strings for equality, but assumes that null string is equal to an empty string.
|
||||
/// </summary>
|
||||
public static bool NullableEqualTo(this string original, string other) => string.IsNullOrEmpty(original)
|
||||
? string.IsNullOrEmpty(other)
|
||||
: original.Equals(other);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user