mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix spurious empty-string-description errors
This commit is contained in:
parent
7a1aaf6dbd
commit
48342a2890
2 changed files with 11 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue