Fixing a bug with mosh links. (#407)

This commit is contained in:
Aleksandar Pesic authored and Felix committed 2019-06-16 11:17:26 +02:00
1 parent 8ec0d58065
commit 94855b7487
5 files changed
+23 -12

No files matched your search

+12
View File
@@ -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);
}
}