diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index 9d2340d0..d9147686 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -312,11 +312,10 @@ class YouCompleteMe( object ): def UpdateDiagnosticInterface( self ): - if ( not self.DiagnosticsForCurrentFileReady() or - not self.NativeFiletypeCompletionUsable() ): - return - self._diag_interface.UpdateWithNewDiagnostics( - self.GetDiagnosticsFromStoredRequest() ) + if ( self.DiagnosticsForCurrentFileReady() and + self.NativeFiletypeCompletionUsable() ): + self._diag_interface.UpdateWithNewDiagnostics( + self.GetDiagnosticsFromStoredRequest() ) def ShowDetailedDiagnostic( self ):