Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nacgarg committed Sep 21, 2020
1 parent d154cdf commit 497f4a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {sendNotification} from '../notification';
import {includesLabels} from './includes-labels';
import {closePage, delay, getSleepTime} from '../util';

let inStock: Record<string, boolean> = {};
const inStock: Record<string, boolean> = {};

/**
* Returns true if the brand should be checked for stock
Expand Down Expand Up @@ -85,7 +85,9 @@ async function lookup(browser: Browser, store: Store) {
Logger.info(link.url);
if (Config.page.inStockWaitTime) {
inStock[store.name] = true;
setTimeout(() => { inStock[store.name] = false; }, 1000 * Config.page.inStockWaitTime);
setTimeout(() => {
inStock[store.name] = false;
}, 1000 * Config.page.inStockWaitTime);
}

if (Config.page.capture) {
Expand Down

0 comments on commit 497f4a9

Please sign in to comment.