Skip to content

Commit d1bf26c

Browse files
committed
Simplifying the code.
1 parent 60243d1 commit d1bf26c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

NStack/strings/ustring.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,9 +2230,7 @@ public ustring Replace (ustring oldValue, ustring newValue, int maxReplacements
22302230
/// <returns></returns>
22312231
public static bool IsNullOrEmpty (ustring value)
22322232
{
2233-
if (value == null)
2234-
return true;
2235-
if (value.Length == 0)
2233+
if (value?.IsEmpty != false)
22362234
return true;
22372235
return false;
22382236
}

0 commit comments

Comments
 (0)