Skip to content

Commit d96085a

Browse files
TCA-883 clean up
1 parent 2688a8b commit d96085a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src-ts/lib/profile-provider/profile-functions/profile.functions.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,11 @@ export async function getLoggedInAsync(handle?: string): Promise<UserProfile | u
2828
return output
2929
}
3030

31-
export async function getPublicAsync(handle?: string): Promise<UserProfile | undefined> {
32-
33-
// get the handle
34-
if (!handle) {
35-
return Promise.resolve(undefined)
36-
}
31+
export async function getPublicAsync(handle: string): Promise<UserProfile | undefined> {
3732

3833
// get the profile
3934
const profileResult: UserProfile = await profileStoreGet(handle)
4035

41-
// make the changes we need based on the token
4236
const output: UserProfile = profileFactoryCreate(profileResult)
4337
return output
4438
}

0 commit comments

Comments
 (0)