summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}