Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 9, 2022
1 parent 6d1fee6 commit 413742c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/report/normalize/early.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { getNoDimensions } from '../../combination/filter.js'

import {
normalizeNonCombAll,
normalizeCombAll,
Expand All @@ -17,8 +15,8 @@ export const normalizeEarlyResult = function (rawResult, history, config) {
result,
history: historyA,
history: [sinceResult],
noDimensions,
} = normalizeReportedResults(rawResult, history, config)
const noDimensions = getNoDimensions(result.combinations)
const configA = normalizeHistory({
history: historyA,
result,
Expand Down
4 changes: 3 additions & 1 deletion src/report/normalize/raw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { addDefaultIds } from '../../combination/default.js'
import { getNoDimensions } from '../../combination/filter.js'
import { keepResultCombinations } from '../../combination/result.js'
import { mergeResults } from '../../history/merge/results.js'
import { selectRawResult } from '../../select/main.js'
Expand Down Expand Up @@ -37,7 +38,8 @@ export const normalizeReportedResults = function (
const targetResultB = selectRawResult(targetResultA, select)
const historyB = addDefaultIds(historyA, targetResultB)
const historyC = filterUnusedCombinations(historyB, targetResultB)
return { result: targetResultB, history: historyC }
const noDimensions = getNoDimensions(targetResultB.combinations)
return { result: targetResultB, history: historyC, noDimensions }
}

// We ignore the combinations from history results that do not exist in the
Expand Down

0 comments on commit 413742c

Please sign in to comment.