Skip to content

Commit e16d5d4

Browse files
committed
inline unnecessary function abstraction
1 parent 68c3510 commit e16d5d4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/cli.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,8 @@ async function build() {
436436
return resolvedConfig
437437
}
438438

439-
function extractContent(config) {
440-
return config.content.files
441-
}
442-
443439
function extractFileGlobs(config) {
444-
return extractContent(config)
440+
return config.content.files
445441
.filter((file) => {
446442
// Strings in this case are files / globs. If it is something else,
447443
// like an object it's probably a raw content object. But this object
@@ -452,7 +448,7 @@ async function build() {
452448
}
453449

454450
function extractRawContent(config) {
455-
return extractContent(config).filter((file) => {
451+
return config.content.files.filter((file) => {
456452
return typeof file === 'object' && file !== null
457453
})
458454
}

0 commit comments

Comments
 (0)