Skip to content

Commit ea002d5

Browse files
mikehardydavid-allison
authored andcommitted
fix: remove unnecessary safe property access
these were non-null properties and do not need safe access, it is flagged as a warning (which we fail on with -Werror) in new kotlin
1 parent 535c9cf commit ea002d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AnkiDroid/src/test/java/com/ichi2/anki/AnalyticsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class AnalyticsTest {
117117

118118
// prepare analytics so we can inspect what happens
119119
val spyHit = spy(ExceptionHit())
120-
doReturn(spyHit).whenever(analytics)?.exception()
120+
doReturn(spyHit).whenever(analytics).exception()
121121
try {
122122
UsageAnalytics.sendAnalyticsException(grandparentException, false)
123123
} catch (e: Exception) {

0 commit comments

Comments
 (0)