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,11 +312,10 @@ class YouCompleteMe( object ):
def UpdateDiagnosticInterface( self ): def UpdateDiagnosticInterface( self ):
if ( not self.DiagnosticsForCurrentFileReady() or if ( self.DiagnosticsForCurrentFileReady() and
not self.NativeFiletypeCompletionUsable() ): self.NativeFiletypeCompletionUsable() ):
return self._diag_interface.UpdateWithNewDiagnostics(
self._diag_interface.UpdateWithNewDiagnostics( self.GetDiagnosticsFromStoredRequest() )
self.GetDiagnosticsFromStoredRequest() )
def ShowDetailedDiagnostic( self ): def ShowDetailedDiagnostic( self ):