Skip to content

Commit

Permalink
[CHORE] #87 : 단일표현식 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 11, 2024
1 parent a4d50f3 commit 53dc61e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class SignInDataSourceImpl @Inject constructor(
private val firebaseAuth: FirebaseAuth,
@ActivityContext private val context: Context,
) : SignInDataSource {
override suspend fun signIn(email: String): Result<String> {
return runCatching {
override suspend fun signIn(email: String): Result<String> =
runCatching {
val provider = OAuthProvider.newBuilder("github.com")
provider.addCustomParameter("login", email)

Expand All @@ -27,5 +27,4 @@ class SignInDataSourceImpl @Inject constructor(
val user = checkNotNull(result.user)
user.uid
}
}
}

0 comments on commit 53dc61e

Please sign in to comment.