Skip to content

Commit 74200e8

Browse files
committed
Fix diagnostics type check and remove unistd include
1 parent b1c70f7 commit 74200e8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/simfil/diagnostics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <tl/expected.hpp>
1111
#include <optional>
12-
#include <unistd.h>
1312
#include <vector>
1413
#include <string>
1514
#include <memory>

src/diagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ auto Diagnostics::buildMessages(Environment& env, const AST& ast) const -> std::
165165
}
166166

167167
const auto intersection = leftTypes.flags & rightTypes.flags;
168-
if (true || intersection.none()) {
168+
if (intersection.none()) {
169169
const auto allTrue = data.trueResults > 0 && data.falseResults == 0;
170170
const auto allFalse = data.falseResults > 0 && data.trueResults == 0;
171171
const auto prefix =

0 commit comments

Comments
 (0)