Skip to content

Commit

Permalink
chore: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Aug 14, 2024
1 parent 3e289cc commit fbaad20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/resolvers/md2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const getFileMeta = async ({fileExtension, metadata, inputPath}: ResolverOptions
const updatedMetadata = metadata?.isContributorsEnabled
? await getVCSMetadata(metadata, content, result?.meta)
: result?.meta;
const fileMeta = fileExtension === '.yaml' ? result?.data?.meta ?? {} : updatedMetadata;
const fileMeta = fileExtension === '.yaml' ? (result?.data?.meta ?? {}) : updatedMetadata;

if (!Array.isArray(fileMeta?.metadata)) {
fileMeta.metadata = [fileMeta?.metadata].filter(Boolean);
Expand Down
7 changes: 2 additions & 5 deletions src/steps/processAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ function processAssetsMdRun({args, tmpOutputFolder}) {
const resourcePaths: string[] = [];

// collect paths of all resources
Object.keys(resources).forEach(
(type) =>
resources[type as keyof Resources]?.forEach((path: string) =>
resourcePaths.push(path),
),
Object.keys(resources).forEach((type) =>
resources[type as keyof Resources]?.forEach((path: string) => resourcePaths.push(path)),
);

//copy resources
Expand Down

0 comments on commit fbaad20

Please sign in to comment.