diff --git a/src/values.test.ts b/src/values.test.ts index 86ea71e..b27ba7d 100644 --- a/src/values.test.ts +++ b/src/values.test.ts @@ -183,7 +183,6 @@ describe("values", () => { }); }); - it("listValuesTransactions(value)", async () => { const valueParams: CreateValueParams = { id: uuid.v4().substring(0, 12), diff --git a/src/values.ts b/src/values.ts index a31a46d..87138b4 100644 --- a/src/values.ts +++ b/src/values.ts @@ -30,9 +30,7 @@ export async function createValue(params: CreateValueParams): Promise { const resp = await lightrail.request("GET", "values").set("accept", contentType).query(formatFilterParams(params)); if (isSuccessStatus(resp.status)) { - return ( - formatResponse(resp) - ); + return formatResponse(resp); } throw new LightrailRequestError(resp); @@ -54,9 +50,7 @@ export async function getValue(value: string | Value, params?: GetValueParams): const resp = await lightrail.request("GET", `values/${encodeURIComponent(valueId)}`).query(params); if (isSuccessStatus(resp.status) || resp.status === 404) { - return ( - formatResponse(resp) - ); + return formatResponse(resp); } throw new LightrailRequestError(resp); @@ -67,9 +61,7 @@ export async function updateValue(value: string | Value, params: UpdateValuePara const resp = await lightrail.request("PATCH", `values/${encodeURIComponent(valueId)}`).send(params); if (isSuccessStatus(resp.status)) { - return ( - formatResponse(resp) - ); + return formatResponse(resp); } throw new LightrailRequestError(resp); @@ -80,9 +72,7 @@ export async function changeValuesCode(value: string | Value, params: ChangeValu const resp = await lightrail.request("POST", `values/${encodeURIComponent(valueId)}/changeCode`).send(params); if (isSuccessStatus(resp.status)) { - return ( - formatResponse(resp) - ); + return formatResponse(resp); } throw new LightrailRequestError(resp); @@ -93,9 +83,7 @@ export async function deleteValue(value: string | Value): Promise