Apply fixes suggested by Prettier to fix CI

This commit is contained in:
Emily Strickland 2022-04-09 19:40:38 +00:00
parent ff886846a8
commit 3a84290314
No known key found for this signature in database
GPG Key ID: 6526B8035DD3DD32
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,6 @@ const imageTypeRegex = /^image\/.+/;
const mediaTypeRegex = /^(audio|video)\/.+/; const mediaTypeRegex = /^(audio|video)\/.+/;
const log = require("../../log"); const log = require("../../log");
module.exports = function (client, chan, msg, cleanText) { module.exports = function (client, chan, msg, cleanText) {
if (!Helper.config.prefetch) { if (!Helper.config.prefetch) {
return; return;
@ -386,7 +385,9 @@ function fetch(uri, headers) {
const prefetchTimeout = Helper.config.prefetchTimeout; const prefetchTimeout = Helper.config.prefetchTimeout;
if (!prefetchTimeout) { if (!prefetchTimeout) {
log.warn("prefetchTimeout is missing from your The Lounge configuration, defaulting to 5000 ms"); log.warn(
"prefetchTimeout is missing from your The Lounge configuration, defaulting to 5000 ms"
);
} }
promise = new Promise((resolve, reject) => { promise = new Promise((resolve, reject) => {