Reverse if logic in UpdateDiagnosticInterface

This commit is contained in:
Andrea Cedraro 2015-06-15 15:54:48 +02:00
parent 3dd24201f3
commit fbdf7cc85e

View File

@ -312,9 +312,8 @@ class YouCompleteMe( object ):
def UpdateDiagnosticInterface( self ):
if ( not self.DiagnosticsForCurrentFileReady() or
not self.NativeFiletypeCompletionUsable() ):
return
if ( self.DiagnosticsForCurrentFileReady() and
self.NativeFiletypeCompletionUsable() ):
self._diag_interface.UpdateWithNewDiagnostics(
self.GetDiagnosticsFromStoredRequest() )