fix: don't apply types if search failed (#840)

This commit is contained in:
Skylot
2020-01-28 20:07:58 +00:00
parent 1bb90233b9
commit 1ce8fa8bdd
@@ -67,9 +67,10 @@ public class TypeSearch {
LOG.warn("Multi-variable search failed in {}", mth);
}
}
boolean applySuccess = applyResolvedVars();
return searchSuccess && applySuccess;
if (searchSuccess) {
return applyResolvedVars();
}
return false;
}
private boolean applyResolvedVars() {