From 25c57584d1eda728edbf72660e932bf6135172eb Mon Sep 17 00:00:00 2001 From: Fabrice Date: Mon, 2 Mar 2026 12:46:31 +0100 Subject: making conditions clearer --- src/source.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/source.cc b/src/source.cc index b3bf910..9bdd60d 100644 --- a/src/source.cc +++ b/src/source.cc @@ -25,10 +25,10 @@ bool buffer_init(Buffer* buffer, const Allocator* allocator, const String* content_in, const String* file_in) { String content, file; bool ret = slice_copy(allocator, content_in, &content); - if (unlikely(ret == false)) return false; + if (unlikely(!ret)) return false; ret = slice_copy(allocator, file_in, &file); - if (unlikely(ret == false)) { + if (unlikely(!ret)) { slice_deallocate(allocator, &content); return false; } -- cgit v1.2.3