From 83263cfc49f1b6af053d52ea2e39777c35f52abc Mon Sep 17 00:00:00 2001 From: Melkus Adam Date: Sun, 10 Sep 2017 19:51:56 +0200 Subject: [PATCH] moved null check --- src/Dependify/Utilities/DependifyUtils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Dependify/Utilities/DependifyUtils.cs b/src/Dependify/Utilities/DependifyUtils.cs index 32875f8..da71f3d 100644 --- a/src/Dependify/Utilities/DependifyUtils.cs +++ b/src/Dependify/Utilities/DependifyUtils.cs @@ -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); } } \ No newline at end of file