mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: parameter naming (#1899)
This commit is contained in:
parent
f846b8da18
commit
47addb31cb
@ -33,9 +33,9 @@ export const getStandardResponses = (
|
||||
...statusCodes: (keyof StandardResponses)[]
|
||||
): Partial<StandardResponses> =>
|
||||
statusCodes.reduce(
|
||||
(acc, n) => ({
|
||||
(acc, statusCode) => ({
|
||||
...acc,
|
||||
[n]: standardResponses[n],
|
||||
[statusCode]: standardResponses[statusCode],
|
||||
}),
|
||||
{} as Partial<StandardResponses>,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user