fix: complete ebay integer validation test coverage
This commit is contained in:
@@ -36,14 +36,7 @@ export function parseNonNegativeIntegerParam(
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
const value = Number(rawValue);
|
||||
if (value < 0) {
|
||||
return Response.json(
|
||||
{ message: `Invalid ${name} parameter` },
|
||||
{ status: 400 },
|
||||
);
|
||||
}
|
||||
return value;
|
||||
return Number(rawValue);
|
||||
}
|
||||
|
||||
export function emptySearchResponse(): Response {
|
||||
|
||||
Reference in New Issue
Block a user