Coding style cleanup

This commit is contained in:
Alexander Bock
2020-02-14 19:37:06 +01:00
parent 166eee8b28
commit 5e29145395
119 changed files with 643 additions and 348 deletions

View File

@@ -182,7 +182,8 @@ bool ScriptEngine::runScript(const std::string& script, ScriptCallback callback)
ghoul::Dictionary returnValue =
ghoul::lua::loadArrayDictionaryFromString(script, _state);
callback(returnValue);
} else {
}
else {
ghoul::lua::runScript(_state, script);
}
}
@@ -651,7 +652,8 @@ bool ScriptEngine::writeLog(const std::string& script) {
return false;
}
} else {
}
else {
_logScripts = false;
return false;
}
@@ -738,7 +740,8 @@ void ScriptEngine::postSync(bool isMaster) {
continue;
}
}
} else {
}
else {
std::lock_guard<std::mutex> guard(_slaveScriptsMutex);
while (!_slaveScriptQueue.empty()) {
try {