Skip to content

Commit

Permalink
Sate linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Nov 1, 2020
1 parent c229940 commit 05a27c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/muncher/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export async function updateCompendium(type, input) {
* Updates game folder items
* @param {*} type
*/
export async function updateFolderItems(type, input, update=true) {
export async function updateFolderItems(type, input, update = true) {
const folderLookup = gameFolderLookup.find((c) => c.type == type);
const itemsFolder = await utils.getFolder(folderLookup.folder);
const existingItems = await game.items.entities.filter(
Expand Down
7 changes: 3 additions & 4 deletions src/muncher/monster.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ export default class MonsterMuncher extends Application {
}

static async parseCritter(monsterSearchName, updateBool) {
const parsingApi = game.settings.get("ddb-importer", "api-endpoint");
// const parsingApi = game.settings.get("ddb-importer", "api-endpoint");
console.log(`munching monsters! ${monsterSearchName} ${updateBool}`); // eslint-disable-line no-console
}

getData() {
const cobalt = game.settings.get("ddb-importer", "cobalt-cookie") == "" ? false : true;
console.warn(cobalt);
getData() { // eslint-disable-line class-methods-use-this
const cobalt = game.settings.get("ddb-importer", "cobalt-cookie") != "";
return {
cobalt: cobalt,
};
Expand Down
7 changes: 3 additions & 4 deletions src/muncher/spells.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ export default class SpellMuncher extends Application {
let uniqueSpells = spells.filter((v, i, a) => a.findIndex((t) => (t.name === v.name)) === i);

if (srdIcons) uniqueSpells = await copySRDIcons(uniqueSpells);
await updateFolderItems('spells', {'spells': uniqueSpells}, updateBool);
await updateFolderItems('spells', { 'spells': uniqueSpells }, updateBool);
window.close();
}

getData() {
const cobalt = game.settings.get("ddb-importer", "cobalt-cookie") == "" ? false : true;
console.warn(cobalt);
getData() { // eslint-disable-line class-methods-use-this
const cobalt = game.settings.get("ddb-importer", "cobalt-cookie") != "";
return {
cobalt: cobalt,
};
Expand Down

0 comments on commit 05a27c1

Please sign in to comment.