diff options
author | Minteck <contact@minteck.org> | 2022-03-27 22:51:09 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-03-27 22:51:09 +0200 |
commit | 8fa0b98c66a4c26f12f9450e6dde77242c5dc008 (patch) | |
tree | f710f15dfa9402f3c8ed2b5fed210ce14513b073 /node_modules/genius-lyrics/dist/Utils.js | |
parent | 3b7a058fbd58b74f413720feb492bdb827993006 (diff) | |
download | youtoo-8fa0b98c66a4c26f12f9450e6dde77242c5dc008.tar.gz youtoo-8fa0b98c66a4c26f12f9450e6dde77242c5dc008.tar.bz2 youtoo-8fa0b98c66a4c26f12f9450e6dde77242c5dc008.zip |
Commit
Diffstat (limited to 'node_modules/genius-lyrics/dist/Utils.js')
-rw-r--r-- | node_modules/genius-lyrics/dist/Utils.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/node_modules/genius-lyrics/dist/Utils.js b/node_modules/genius-lyrics/dist/Utils.js index 3d6b785..ad92b88 100644 --- a/node_modules/genius-lyrics/dist/Utils.js +++ b/node_modules/genius-lyrics/dist/Utils.js @@ -1,20 +1,20 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkConfig = void 0; -const checkConfig = (config) => { - if (!config || typeof config !== "object") { - return false; - } - if (config.requestOptions && typeof config.requestOptions !== "object") { - return false; - } - if (config.origin) { - if (typeof config.origin !== "object" || - (config.origin.api && typeof config.origin.api !== "string") || - (config.origin.url && typeof config.origin.url !== "string")) { - return false; - } - } - return true; -}; -exports.checkConfig = checkConfig; +"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.checkConfig = void 0;
+const checkConfig = (config) => {
+ if (!config || typeof config !== "object") {
+ return false;
+ }
+ if (config.requestOptions && typeof config.requestOptions !== "object") {
+ return false;
+ }
+ if (config.origin) {
+ if (typeof config.origin !== "object" ||
+ (config.origin.api && typeof config.origin.api !== "string") ||
+ (config.origin.url && typeof config.origin.url !== "string")) {
+ return false;
+ }
+ }
+ return true;
+};
+exports.checkConfig = checkConfig;
|