mirror of
https://github.com/adusak/Dependify.git
synced 2026-01-11 20:00:31 +01:00
moved null check
This commit is contained in:
@@ -49,7 +49,6 @@ namespace Dependify.Utilities {
|
||||
}
|
||||
|
||||
private static bool BelongsToNamespace(string testedNamespace, string parentNamespace)
|
||||
=> testedNamespace != null &&
|
||||
(testedNamespace == parentNamespace || testedNamespace.StartsWith(parentNamespace + "."));
|
||||
=> testedNamespace == parentNamespace || (testedNamespace?.StartsWith(parentNamespace + ".") ?? false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user