Skip to content

Commit 87f8ce4

Browse files
committed
fix
1 parent c0fef26 commit 87f8ce4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

odp/src/androidTest/java/com/optimizely/ab/android/odp/VuidManagerTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import android.content.Context
1818
import android.content.SharedPreferences
1919
import androidx.test.ext.junit.runners.AndroidJUnit4
2020
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
21-
import com.optimizely.ab.android.shared.OptlyStorage
2221
import org.junit.After
2322
import org.junit.Assert.assertEquals
2423
import org.junit.Assert.assertFalse

odp/src/main/java/com/optimizely/ab/android/odp/VuidManager.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)