summaryrefslogtreecommitdiff
path: root/AK/String.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/String.h')
-rw-r--r--AK/String.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/AK/String.h b/AK/String.h
index 621ff92dc1..ff729558cd 100644
--- a/AK/String.h
+++ b/AK/String.h
@@ -240,8 +240,6 @@ public:
template<typename BufferType>
[[nodiscard]] static String copy(const BufferType& buffer, ShouldChomp should_chomp = NoChomp)
{
- if (buffer.is_null())
- return {};
if (buffer.is_empty())
return empty();
return String((const char*)buffer.data(), buffer.size(), should_chomp);