Skip to content

Commit

Permalink
chore: code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Nov 22, 2024
1 parent 5e49709 commit 0dda00e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IConverterPaths, IFlowHashmapByType, IParsedWorkbookData } from "../../
import { arrayToHashmap, groupJsonByKey, IContentsEntry } from "../../utils";
import BaseProcessor from "../base";

const cacheVersion = 20241121.1;
const cacheVersion = 20241121.2;

export class FlowParserProcessor extends BaseProcessor<FlowTypes.FlowTypeWithData> {
public parsers: { [flowType in FlowTypes.FlowType]: Parsers.DefaultParser } = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ export class DataListParser extends DefaultParser {
else {
metadataInitial = this.inferMetadataFromData(flow.rows);
}
// quality check metadata and assign cleaned meta to flow
// quality check metadata and assign cleaned meta to flow if non-empty
const { warnings, metadata } = this.qualityCheckMetadata(metadataInitial);
flow._metadata = metadata;
if (!isEmptyObjectDeep(metadata)) {
flow._metadata = metadata;
}

if (warnings.length > 0) {
for (const warning of warnings) {
Expand Down

0 comments on commit 0dda00e

Please sign in to comment.