* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...

This commit is contained in:
Bryan Ashby 2018-01-15 12:22:11 -07:00
parent a106050ba3
commit ac1433e84b
112 changed files with 1375 additions and 1898 deletions

View file

@ -31,7 +31,7 @@ const ALL_ASSETS = [
const ASSET_RE = new RegExp('\\@(' + ALL_ASSETS.join('|') + ')\\:([\\w\\d\\.]*)(?:\\/([\\w\\d\\_]+))*');
function parseAsset(s) {
function parseAsset(s) {
const m = ASSET_RE.exec(s);
if(m) {
@ -68,7 +68,7 @@ function getAssetWithShorthand(spec, defaultType) {
function getArtAsset(spec) {
const asset = getAssetWithShorthand(spec, 'art');
if(!asset) {
return null;
}
@ -79,7 +79,7 @@ function getArtAsset(spec) {
function getModuleAsset(spec) {
const asset = getAssetWithShorthand(spec, 'systemModule');
if(!asset) {
return null;
}
@ -105,7 +105,7 @@ function resolveConfigAsset(spec) {
return conf;
} else {
return spec;
}
}
}
function resolveSystemStatAsset(spec) {