File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ M.reported = {}
13
13
14
14
function M .start ()
15
15
M .fast_check ()
16
- if M .schedule () > 0 then
16
+ if M .schedule () > 0 and not M . has_errors () then
17
17
Manage .log ({
18
18
clear = false ,
19
19
show = false ,
@@ -47,17 +47,19 @@ function M.fast_check(opts)
47
47
M .report (opts .report ~= false )
48
48
end
49
49
50
- function M .check ()
51
- State .checker .last_check = os.time ()
52
- State .write () -- update state
53
- local errors = false
50
+ function M .has_errors ()
54
51
for _ , plugin in pairs (Config .plugins ) do
55
52
if Plugin .has_errors (plugin ) then
56
- errors = true
57
- break
53
+ return true
58
54
end
59
55
end
60
- if errors then
56
+ return false
57
+ end
58
+
59
+ function M .check ()
60
+ State .checker .last_check = os.time ()
61
+ State .write () -- update state
62
+ if M .has_errors () then
61
63
M .schedule ()
62
64
else
63
65
Manage .check ({
You can’t perform that action at this time.
0 commit comments