Skip to content

Commit

Permalink
fix(lint): Address several linting errors
Browse files Browse the repository at this point in the history
My bad, forgot to run lint first before pushing branch
  • Loading branch information
mitsuki31 committed Jul 17, 2024
1 parent 048fe04 commit 3421a33
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 || {};
}

Expand Down

0 comments on commit 3421a33

Please sign in to comment.