fix linting

This commit is contained in:
Ron Rennick 2023-11-30 22:05:01 -04:00
parent cf2cd16689
commit b2cf209891
1 changed files with 4 additions and 2 deletions

View File

@ -54,8 +54,10 @@ async function processDirectory(
const categoryFolder = path.basename( subDirectory );
const categoryTitle = categoryFolder
.split( '-' )
.map( ( slugPart ) =>
slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
.map(
( slugPart ) =>
slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 )
)
.join( ' ' );
category.category_slug = category.category_slug ?? categoryFolder;
category.category_title = category.category_title ?? categoryTitle;