We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6aafd commit 2918a9aCopy full SHA for 2918a9a
studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk/Studyplus.kt
@@ -40,7 +40,7 @@ class Studyplus private constructor() {
40
* @since 2.0.0
41
*/
42
fun startAuth(activity: Activity, requestCode: Int) {
43
- check(!(consumerKey == null || consumerSecret == null)) { "Please call setup method before this method call." }
+ check(consumerKey != null && consumerSecret != null) { "Please call setup method before this method call." }
44
45
AuthTransit(consumerKey!!, consumerSecret!!).start(activity, requestCode)
46
}
@@ -86,4 +86,4 @@ class Studyplus private constructor() {
86
@JvmStatic
87
val instance by lazy { Studyplus() }
88
89
-}
+}
0 commit comments