Skip to content

Commit 935def9

Browse files
committed
Fix detekt
1 parent cb762fa commit 935def9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,17 @@ class SentryFlutterPlugin :
492492
var width = call.argument("width") as? Double ?: 0.0
493493
var height = call.argument("height") as? Double ?: 0.0
494494

495-
if (width == 0.0 || height == 0.0 || windowWidth == 0.0 || windowHeight == 0.0) {
495+
val invalidConfig =
496+
width == 0.0 ||
497+
height == 0.0 ||
498+
windowWidth == 0.0 ||
499+
windowHeight == 0.0
500+
501+
if (invalidConfig) {
496502
result.error(
497503
"5",
498-
"Replay config is not valid: width: $width, height: $height, windowWidth: $windowWidth, windowHeight: $windowHeight",
504+
"Replay config is not valid: width: $width, height: $height, " +
505+
"windowWidth: $windowWidth, windowHeight: $windowHeight",
499506
null,
500507
)
501508
return

0 commit comments

Comments
 (0)