From 3421a33da542a4d0513fd860032e41c8bf5bff66 Mon Sep 17 00:00:00 2001 From: Ryuu Mitsuki Date: Wed, 17 Jul 2024 22:47:45 +0700 Subject: [PATCH] fix(lint): Address several linting errors My bad, forgot to run lint first before pushing branch --- lib/config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config.js b/lib/config.js index 7209ee8..b005f00 100644 --- a/lib/config.js +++ b/lib/config.js @@ -82,14 +82,12 @@ 'use strict'; -const fs = require('node:fs'); const path = require('node:path'); const util = require('node:util'); const ytmp3 = require('./ytmp3'); const { isNullOrUndefined, isObject, - logger: log } = require('./utils'); const { resolveOptions: resolveACOptions @@ -161,12 +159,10 @@ function resolveConfig({ config, file }) { // By using this below logic, if user specified with any falsy value // or unspecified it will uses the fallback value instead let downloadOptions = config.downloadOptions || {}; - let audioConverterOptions, acOptionsFrom; + let audioConverterOptions; if ('converterOptions' in downloadOptions) { - acOptionsFrom = 'downloadOptions.converterOptions'; audioConverterOptions = downloadOptions.converterOptions || {}; } else if ('audioConverterOptions' in config) { - acOptionsFrom = 'audioConverterOptions'; audioConverterOptions = config.audioConverterOptions || {}; }