File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
androidTest/java/com/optimizely/ab/android/odp
main/java/com/optimizely/ab/android/odp Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import android.content.Context
1818import android.content.SharedPreferences
1919import androidx.test.ext.junit.runners.AndroidJUnit4
2020import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
21- import com.optimizely.ab.android.shared.OptlyStorage
2221import org.junit.After
2322import org.junit.Assert.assertEquals
2423import org.junit.Assert.assertFalse
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ class VuidManager private constructor() {
2828 private var INSTANCE : VuidManager ? = null
2929
3030 @Synchronized
31- fun getInstance (): VuidManager = INSTANCE ? :
32- VuidManager ().also { INSTANCE = it }
31+ fun getInstance (): VuidManager = INSTANCE ? : VuidManager ().also { INSTANCE = it }
3332
3433 fun isVuid (visitorId : String ): Boolean {
3534 return visitorId.startsWith(" vuid_" , ignoreCase = true )
@@ -44,7 +43,7 @@ class VuidManager private constructor() {
4443 @Synchronized
4544 fun configure (enableVuid : Boolean , context : Context ) {
4645 if (! enableVuid) {
47- removeVuid(context);
46+ removeVuid(context)
4847 } else {
4948 this .vuid = load(context)
5049 }
@@ -80,6 +79,6 @@ class VuidManager private constructor() {
8079
8180 fun removeVuid (context : Context ) {
8281 val storage = OptlyStorage (context)
83- storage.remove(keyForVuid);
82+ storage.remove(keyForVuid)
8483 }
8584}
You can’t perform that action at this time.
0 commit comments