moved null check

This commit is contained in:
Melkus Adam
2017-09-10 19:51:56 +02:00
parent 930577b5db
commit 83263cfc49

View File

@@ -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);
}
}