Skip to content

Commit 2918a9a

Browse files
koji-1009nacatl
andauthored
Update studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk/Studyplus.kt
Co-Authored-By: nacatl <[email protected]>
1 parent cf6aafd commit 2918a9a

File tree

1 file changed

+2
-2
lines changed
  • studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk

1 file changed

+2
-2
lines changed

studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk/Studyplus.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Studyplus private constructor() {
4040
* @since 2.0.0
4141
*/
4242
fun startAuth(activity: Activity, requestCode: Int) {
43-
check(!(consumerKey == null || consumerSecret == null)) { "Please call setup method before this method call." }
43+
check(consumerKey != null && consumerSecret != null) { "Please call setup method before this method call." }
4444

4545
AuthTransit(consumerKey!!, consumerSecret!!).start(activity, requestCode)
4646
}
@@ -86,4 +86,4 @@ class Studyplus private constructor() {
8686
@JvmStatic
8787
val instance by lazy { Studyplus() }
8888
}
89-
}
89+
}

0 commit comments

Comments
 (0)