changed size()==0 to empty()

This commit is contained in:
rianneogi 2018-01-10 21:32:10 +05:30 committed by Jacob Dufault
parent dc00d320ec
commit a324178fcb

View File

@ -303,7 +303,7 @@ struct TextDocumentCompletionHandler : MessageHandler {
out.result.items = results;
// Emit completion results.
if (existing_completion.size()==0 && is_global_completion) {
if (existing_completion.empty() && is_global_completion) {
LOG_S(INFO) << "Existing completion is empty, no completion results will be returned";
Out_TextDocumentComplete out;
out.id = request->id;