From 115b8d9b70a891810742d837cc7d415675e5ebc4 Mon Sep 17 00:00:00 2001 From: Vardhaman Deshpande Date: Sun, 7 May 2017 19:01:16 +0100 Subject: [PATCH] removed duplicate code (#194) --- .../webparts/organisationChart/services/UserProfileService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/react-organisationchart/src/webparts/organisationChart/services/UserProfileService.ts b/samples/react-organisationchart/src/webparts/organisationChart/services/UserProfileService.ts index c16ecb4e7..f1ab1b8cd 100644 --- a/samples/react-organisationchart/src/webparts/organisationChart/services/UserProfileService.ts +++ b/samples/react-organisationchart/src/webparts/organisationChart/services/UserProfileService.ts @@ -13,11 +13,9 @@ export class UserProfileService implements IUserProfileService { constructor(serviceScope: ServiceScope) { serviceScope.whenFinished(() => { - serviceScope.whenFinished(() => { this._spHttpClient = serviceScope.consume(SPHttpClient.serviceKey); this._pageContext = serviceScope.consume(PageContext.serviceKey); this._currentWebUrl = this._pageContext.web.absoluteUrl; - }); }); } @@ -80,4 +78,4 @@ export class UserProfileService implements IUserProfileService { public getProfilePhoto(photoUrl: string) { return `/_layouts/15/userphoto.aspx?size=M&url=${photoUrl}`; } -} \ No newline at end of file +}