diff --git a/src/operations/profiles/ops-profiles.ts b/src/operations/profiles/ops-profiles.ts index 6f6f438b6..08a5b41d0 100644 --- a/src/operations/profiles/ops-profiles.ts +++ b/src/operations/profiles/ops-profiles.ts @@ -5,17 +5,14 @@ export class ProfileOperation extends Operation { protected resource = 'profiles' @DecodeArray(Profile) - public listProfiles(): Promise { - return this.client.get(`${this.version}/${this.resource}`) - } + public listProfiles = (): Promise => + this.client.get(`${this.version}/${this.resource}`) @Decode(Profile) - public getProfile(profileId: ProfileId): Promise { - return this.client.get(`${this.version}/${this.resource}/${profileId}`) - } + public getProfile = (profileId: ProfileId): Promise => + this.client.get(`${this.version}/${this.resource}/${profileId}`) @DecodeArray(ProfileResponse) - public updateProfiles(profiles: Partial[]): Promise { - return this.client.put(`${this.version}/${this.resource}`, profiles) - } + public updateProfiles = (profiles: Partial[]): Promise => + this.client.put(`${this.version}/${this.resource}`, profiles) }