mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix null normalising utility
This commit is contained in:
parent
55f77df39e
commit
530e3aa697
1 changed files with 3 additions and 1 deletions
|
|
@ -249,7 +249,9 @@ namespace PluralKit
|
|||
|
||||
public static string NullIfEmpty(this string input)
|
||||
{
|
||||
return input.Trim().Length == 0 ? null : input;
|
||||
if (input == null) return null;
|
||||
if (input.Trim().Length == 0) return null;
|
||||
return input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue