Fix spurious empty-string-description errors

This commit is contained in:
Ske
2020-02-12 23:18:31 +01:00
parent 7a1aaf6dbd
commit 48342a2890
2 changed files with 11 additions and 4 deletions

View File

@@ -53,5 +53,12 @@ namespace PluralKit.Core
if (input.Trim().Length == 0) return null;
return input;
}
public static bool EmptyOrNull(this string input)
{
if (input == null) return true;
if (input.Trim().Length == 0) return true;
return false;
}
}
}