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

@ -159,7 +159,7 @@ module.exports = {
//
// This value is set to `50` kilobytes by default.
prefetchMaxSearchSize: 50,
// ### `prefetchTimeout`
//
// When `prefetch` is enabled, this value sets the number of milliseconds

View File

@ -12,7 +12,6 @@ const imageTypeRegex = /^image\/.+/;
const mediaTypeRegex = /^(audio|video)\/.+/;
const log = require("../../log");
module.exports = function (client, chan, msg, cleanText) {
if (!Helper.config.prefetch) {
return;
@ -386,7 +385,9 @@ function fetch(uri, headers) {
const prefetchTimeout = Helper.config.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) => {