Apply fixes suggested by Prettier to fix CI
This commit is contained in:
parent
ff886846a8
commit
3a84290314
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user