From 0c7f0fc48ff272fdc6db5fb2e54a252bd3786c14 Mon Sep 17 00:00:00 2001
From: Mira <56395159+TheXorog@users.noreply.github.com>
Date: Wed, 14 Feb 2024 00:59:19 +0100
Subject: [PATCH] Make string extensions use nullable string
---
Extensions/StringExtensions.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Extensions/StringExtensions.cs b/Extensions/StringExtensions.cs
index 342f561..13008c4 100644
--- a/Extensions/StringExtensions.cs
+++ b/Extensions/StringExtensions.cs
@@ -7,7 +7,7 @@ public static class StringExtensions
///
///
/// Whether the string is null, empty or only contains whitespaces
- public static bool IsNullOrWhiteSpace(this string str)
+ public static bool IsNullOrWhiteSpace(this string? str)
=> string.IsNullOrWhiteSpace(str);
///
@@ -15,7 +15,7 @@ public static class StringExtensions
///
///
/// Whether the string is null or empty
- public static bool IsNullOrEmpty(this string str)
+ public static bool IsNullOrEmpty(this string? str)
=> string.IsNullOrEmpty(str);
///