diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:46:31 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:46:31 +0100 |
| commit | 25c57584d1eda728edbf72660e932bf6135172eb (patch) | |
| tree | 3e540a0cd95e973c5392b1539ceaafe37d5b7674 | |
| parent | f8f8d483f62cfabdada34c2b24509bbe457e87ef (diff) | |
making conditions clearer
| -rw-r--r-- | src/source.cc | 4 |
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; } |
