Skip to content

Commit 02c0f80

Browse files
committed
sbt-bridge: Fix inverted logic
1 parent 709df8f commit 02c0f80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbt-bridge/src/xsbt/DelegatingReporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public void doReport(MessageContainer cont, Context ctx) {
8080
SourceFile src = pos.source();
8181
position = new Position() {
8282
public Optional<java.io.File> sourceFile() {
83-
if (src.exists()) return Optional.empty();
83+
if (!src.exists()) return Optional.empty();
8484
else return Optional.ofNullable(src.file().file());
8585
}
8686
public Optional<String> sourcePath() {
87-
if (src.exists()) return Optional.empty();
87+
if (!src.exists()) return Optional.empty();
8888
else return Optional.ofNullable(src.file().path());
8989
}
9090
public Optional<Integer> line() {

0 commit comments

Comments
 (0)