mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-04 15:33:20 +02:00
Apply fixes suggested by Prettier to fix CI
This commit is contained in:
parent
ff886846a8
commit
3a84290314
|
@ -159,7 +159,7 @@ module.exports = {
|
||||||
//
|
//
|
||||||
// This value is set to `50` kilobytes by default.
|
// This value is set to `50` kilobytes by default.
|
||||||
prefetchMaxSearchSize: 50,
|
prefetchMaxSearchSize: 50,
|
||||||
|
|
||||||
// ### `prefetchTimeout`
|
// ### `prefetchTimeout`
|
||||||
//
|
//
|
||||||
// When `prefetch` is enabled, this value sets the number of milliseconds
|
// When `prefetch` is enabled, this value sets the number of milliseconds
|
||||||
|
|
|
@ -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 a new issue