Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 16, 2022
1 parent 07d0bd1 commit 072744f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/config/normalize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mapObj from 'map-obj'

import { parseLimit } from '../history/compare/parse.js'
import { normalizeLimit } from '../history/compare/normalize.js'
import { validateMerge } from '../history/merge/id.js'
import { normalizePrecision } from '../run/precision.js'

Expand Down Expand Up @@ -64,10 +64,6 @@ const normalizeSelect = function (value, propName) {
return valueA
}

const normalizeLimit = function (value) {
return parseLimit(value)
}

const checkTitles = function (value, propName) {
Object.entries(value).forEach(([childName, propValue]) => {
checkDefinedString(propValue, `${propName}.${childName}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UserError } from '../../error/main.js'

// Parse the `limit` configuration property.
// It is an integer representing a percentage.
export const parseLimit = function (limit) {
export const normalizeLimit = function (limit) {
if (!Number.isInteger(limit)) {
throw new UserError(
`The 'limit' configuration property's percentage must be an integer: ${limit}`,
Expand Down

0 comments on commit 072744f

Please sign in to comment.