Removed unnecessary check in configmanager for server code

This commit is contained in:
TheFlash787 2020-08-13 00:12:35 +01:00
parent 670a5083d1
commit 407adcae14

View File

@ -44,8 +44,8 @@ exports.setDataDirectory = function(dataDirectory){
*
* @returns {string} The server code that has been put into the launcher
*/
exports.getServerCode = function(def = false){
return !def ? config.settings.launcher.serverCode : DEFAULT_CONFIG.settings.launcher.serverCode
exports.getServerCode = function(){
return config.settings.launcher.serverCode
}
/**