remove surrounding braces on single-if-statements

This commit is contained in:
Felipe Lema 2021-06-23 12:32:57 -04:00
parent 20ef17c0a7
commit dc9ba782aa

View File

@ -272,12 +272,13 @@ void MessageHandler::textDocument_semanticTokensRange(
uint8_t kindId;
int modifiers = entry.second->storage == SC_Static ? 4 : 0;
if (entry.first.second & Role::Declaration) {
if (entry.first.second & Role::Declaration)
modifiers |= 1;
}
if (entry.first.second & Role::Definition) {
if (entry.first.second & Role::Definition)
modifiers |= 2;
}
if (entry.second->kind == SymbolKind::StaticMethod) {
kindId = (uint8_t)SymbolKind::Method;
modifiers = 4;