Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 9, 2022
1 parent e5c8b72 commit 6fd5bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/run/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { listCombinations } from '../combination/list.js'
import { listHistory } from '../history/data/main.js'
import { normalizeRawResults } from '../history/normalize/load.js'
import { createTopProps } from '../top/create.js'
import { addSystemVersions } from '../top/system/versions.js'
import { mergeSystemVersions } from '../top/system/versions.js'

// Create a new rawResult to measure
export const createResult = async function (config) {
Expand All @@ -15,7 +15,7 @@ export const createResult = async function (config) {
history,
config,
)
const rawResultB = addSystemVersions(rawResultA)
const rawResultB = mergeSystemVersions(rawResultA)
return { rawResult: rawResultB, history: historyA }
}

Expand Down
2 changes: 1 addition & 1 deletion src/top/system/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ${error.message}`,

// Merge `result.combinations[*].dimensions.runner.versions` into a single
// `result.systems[0].versions`.
export const addSystemVersions = function (rawResult) {
export const mergeSystemVersions = function (rawResult) {
const versions = getSystemVersions(rawResult)
return { ...rawResult, systems: [{ ...rawResult.systems[0], versions }] }
}
Expand Down

0 comments on commit 6fd5bc5

Please sign in to comment.