Switch to native number check

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-03-13 16:15:07 +00:00
parent eccb1bd9ad
commit 809a5fae25

View File

@ -21,7 +21,7 @@ export function normalizeUuidProp(
params: { [key: string]: any },
propName = 'uuid',
) {
if (_.isNumber(params[propName])) {
if (typeof params[propName] === 'number') {
params[propName] =
params[propName + '_raw'] || _.toString(params[propName]);
}
@ -33,7 +33,7 @@ export async function disambiguateReleaseParam(
paramRaw: string | undefined,
) {
// the user has passed an argument that was parsed as a string
if (!_.isNumber(param)) {
if (typeof param !== 'number') {
return param;
}