Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit daa3dc7

Browse files
authored
Merge pull request #218 from AtomLinter/arcanemagus/null-return
Handle superseded runs
2 parents b8eeb3b + 458b0b0 commit daa3dc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ export default {
132132
return null;
133133
}
134134

135+
if (output === null) {
136+
// Another run has superseded this run
137+
return null;
138+
}
139+
135140
if (textEditor.getText() !== text) {
136141
// The editor contents have changed, tell Linter not to update
137142
return null;

0 commit comments

Comments
 (0)