fix(frontends/lean/dependencies): compilation warning
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ffa175009b
commit
1f0171cd57
1 changed files with 4 additions and 4 deletions
|
@ -22,11 +22,11 @@ bool consume_until_import(environment const & env, scanner & s) {
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
t = s.scan(env);
|
t = s.scan(env);
|
||||||
|
if (t == scanner::token_kind::Eof)
|
||||||
|
return false;
|
||||||
|
if (t == scanner::token_kind::CommandKeyword && s.get_token_info().value() == import)
|
||||||
|
return true;
|
||||||
} catch (...) {}
|
} catch (...) {}
|
||||||
if (t == scanner::token_kind::Eof)
|
|
||||||
return false;
|
|
||||||
if (t == scanner::token_kind::CommandKeyword && s.get_token_info().value() == import)
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue