mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
refactor: replace verbose checks with String.IsNullOrEmpty where applicable.
Thanks to Kira for this patch from http://opensimulator.org/mantis/view.php?id=6845
This commit is contained in:
@@ -461,7 +461,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
string result = instr;
|
||||
|
||||
if (result == null || result.Length == 0)
|
||||
if (string.IsNullOrEmpty(result))
|
||||
return result;
|
||||
|
||||
// Repeatedly scan the string until all possible
|
||||
|
||||
Reference in New Issue
Block a user