We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e36bc0c commit 693167eCopy full SHA for 693167e
1 file changed
source/Nuke.Common/Utilities/String.Emptiness.cs
@@ -2,15 +2,19 @@
2
// Distributed under the MIT License.
3
// https://github.com/nuke-build/nuke/blob/master/LICENSE
4
5
+using JetBrains.Annotations;
6
+
7
namespace Nuke.Common.Utilities
8
{
9
public static partial class StringExtensions
10
11
+ [ContractAnnotation("null => halt")]
12
public static bool IsNullOrEmpty(this string str)
13
14
return string.IsNullOrEmpty(str);
15
}
16
17
18
public static bool IsNullOrWhiteSpace(this string str)
19
20
return string.IsNullOrWhiteSpace(str);
0 commit comments