summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 12:46:31 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 12:46:31 +0100
commit25c57584d1eda728edbf72660e932bf6135172eb (patch)
tree3e540a0cd95e973c5392b1539ceaafe37d5b7674
parentf8f8d483f62cfabdada34c2b24509bbe457e87ef (diff)
making conditions clearer
-rw-r--r--src/source.cc4
1 files changed, 2 insertions, 2 deletions
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;
}