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 * @returns {string} The server code that has been put into the launcher
*/ */
exports.getServerCode = function(def = false){ exports.getServerCode = function(){
return !def ? config.settings.launcher.serverCode : DEFAULT_CONFIG.settings.launcher.serverCode return config.settings.launcher.serverCode
} }
/** /**