mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
linting, TIL that obj.$key is valid syntax
This commit is contained in:
@@ -30,8 +30,9 @@ var utils = require('./../../public/src/utils'),
|
||||
var middleware = {};
|
||||
|
||||
function routeCurrentTheme(app, themeId, themesData) {
|
||||
var themeId = (themeId || 'nodebb-theme-vanilla'),
|
||||
themeObj = (function(id) {
|
||||
themeId = (themeId || 'nodebb-theme-vanilla');
|
||||
|
||||
var themeObj = (function(id) {
|
||||
return themesData.filter(function(themeObj) {
|
||||
return themeObj.id === id;
|
||||
})[0];
|
||||
|
||||
Reference in New Issue
Block a user