Use simple membership test to tell if a buffer has errors
@@ -89,8 +89,7 @@ class UpdateState(sublime_plugin.EventListener):
if persist.settings.get('show_panel_on_save') == 'window' and errors_by_bid:
window.run_command("sublime_linter_panel_toggle", {"force_show": True})
else:
- for bid in errors_by_bid:
- if bid is view.buffer_id():
+ if view.buffer_id() in errors_by_bid:
window.run_command("sublime_linter_panel_toggle", {"force_show": True})
return
