Skip to content

Commit a46d651

Browse files
refactor: streamline method signatures in ProfilesClient for consistency
1 parent 38c391b commit a46d651

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Artifacts/Comanda.Internal.Sdk/source/clients/profiles-client.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export class ProfilesClient {
1212
this.httpClient = httpClient;
1313
}
1414

15-
public async createOwner(parameters: ProfileCreationScheme): Promise<Result<ProfileScheme>>
16-
{
15+
public async createOwner(parameters: ProfileCreationScheme): Promise<Result<ProfileScheme>> {
1716
const response = await this.httpClient.post("/api/v1/profiles/owner", parameters);
1817
if (response.status < 200 || response.status >= 300) {
1918
return Result.failure(Error.from(response.data.code, response.data.description));
@@ -22,8 +21,7 @@ export class ProfilesClient {
2221
return Result.success(response.data);
2322
}
2423

25-
public async createCustomer(parameters: ProfileCreationScheme): Promise<Result<void>>
26-
{
24+
public async createCustomer(parameters: ProfileCreationScheme): Promise<Result<void>> {
2725
const response = await this.httpClient.post("/api/v1/profiles/owner", parameters);
2826
if (response.status < 200 || response.status >= 300) {
2927
return Result.failure(Error.from(response.data.code, response.data.description));

0 commit comments

Comments
 (0)