Skip to content

Commit 8844930

Browse files
committed
Lint
1 parent 6cb1317 commit 8844930

File tree

15 files changed

+24
-20
lines changed

15 files changed

+24
-20
lines changed

firebase-database/src/androidMain/kotlin/dev/gitlive/firebase/database/ServerValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public actual class ServerValue internal actual constructor(
1414
public actual fun increment(delta: Double): ServerValue = ServerValue(NativeServerValue.increment(delta))
1515
}
1616

17-
override fun equals(other: Any?): Boolean = this === other || other is ServerValue && nativeValue == other.nativeValue
17+
override fun equals(other: Any?): Boolean = this === other || (other is ServerValue && nativeValue == other.nativeValue)
1818
override fun hashCode(): Int = nativeValue.hashCode()
1919
override fun toString(): String = "ServerValue($nativeValue)"
2020
}

firebase-database/src/appleMain/kotlin/dev/gitlive/firebase/database/ServerValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public actual class ServerValue internal actual constructor(
1818
public actual fun increment(delta: Double): ServerValue = ServerValue(NativeServerValue.increment(delta as NSNumber))
1919
}
2020

21-
override fun equals(other: Any?): Boolean = this === other || other is ServerValue && nativeValue == other.nativeValue
21+
override fun equals(other: Any?): Boolean = this === other || (other is ServerValue && nativeValue == other.nativeValue)
2222
override fun hashCode(): Int = nativeValue.hashCode()
2323
override fun toString(): String = "ServerValue($nativeValue)"
2424
}

firebase-database/src/jsMain/kotlin/dev/gitlive/firebase/database/ServerValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public actual class ServerValue internal actual constructor(
1414
public actual fun increment(delta: Double): ServerValue = ServerValue(jsIncrement(delta))
1515
}
1616

17-
override fun equals(other: Any?): Boolean = this === other || other is ServerValue && nativeValue == other.nativeValue
17+
override fun equals(other: Any?): Boolean = this === other || (other is ServerValue && nativeValue == other.nativeValue)
1818
override fun hashCode(): Int = nativeValue.hashCode()
1919
override fun toString(): String = "ServerValue($nativeValue)"
2020
}

firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore/FieldValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public actual class FieldValue internal actual constructor(internal actual val n
1111
init {
1212
require(nativeValue is NativeFieldValue)
1313
}
14-
override fun equals(other: Any?): Boolean = this === other || other is FieldValue && nativeValue == other.nativeValue
14+
override fun equals(other: Any?): Boolean = this === other || (other is FieldValue && nativeValue == other.nativeValue)
1515
override fun hashCode(): Int = nativeValue.hashCode()
1616
override fun toString(): String = nativeValue.toString()
1717

firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore/GeoPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public actual class GeoPoint internal actual constructor(internal actual val nat
1212
public actual val latitude: Double = nativeValue.latitude
1313
public actual val longitude: Double = nativeValue.longitude
1414

15-
override fun equals(other: Any?): Boolean = this === other || other is GeoPoint && nativeValue == other.nativeValue
15+
override fun equals(other: Any?): Boolean = this === other || (other is GeoPoint && nativeValue == other.nativeValue)
1616
override fun hashCode(): Int = nativeValue.hashCode()
1717
override fun toString(): String = nativeValue.toString()
1818
}

firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore/Timestamp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public actual class Timestamp internal actual constructor(
2121
public actual val seconds: Long = nativeValue.seconds
2222
public actual val nanoseconds: Int = nativeValue.nanoseconds
2323

24-
override fun equals(other: Any?): Boolean = this === other || other is Timestamp && nativeValue == other.nativeValue
24+
override fun equals(other: Any?): Boolean = this === other || (other is Timestamp && nativeValue == other.nativeValue)
2525
override fun hashCode(): Int = nativeValue.hashCode()
2626
override fun toString(): String = nativeValue.toString()
2727

firebase-firestore/src/androidMain/kotlin/dev/gitlive/firebase/firestore/internal/NativeDocumentReference.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal actual class NativeDocumentReference actual constructor(actual val nati
6969
awaitClose { registration.remove() }
7070
}
7171

72-
override fun equals(other: Any?): Boolean = this === other || other is NativeDocumentReference && nativeValue == other.nativeValue
72+
override fun equals(other: Any?): Boolean = this === other || (other is NativeDocumentReference && nativeValue == other.nativeValue)
7373
override fun hashCode(): Int = nativeValue.hashCode()
7474
override fun toString(): String = nativeValue.toString()
7575

firebase-firestore/src/appleMain/kotlin/dev/gitlive/firebase/firestore/FieldValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public actual class FieldValue internal actual constructor(internal actual val n
1212
init {
1313
require(nativeValue is NativeFieldValue)
1414
}
15-
override fun equals(other: Any?): Boolean = this === other || other is FieldValue && nativeValue == other.nativeValue
15+
override fun equals(other: Any?): Boolean = this === other || (other is FieldValue && nativeValue == other.nativeValue)
1616
override fun hashCode(): Int = nativeValue.hashCode()
1717
override fun toString(): String = nativeValue.toString()
1818

firebase-firestore/src/appleMain/kotlin/dev/gitlive/firebase/firestore/GeoPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public actual class GeoPoint internal actual constructor(internal actual val nat
1313
public actual val latitude: Double = nativeValue.latitude
1414
public actual val longitude: Double = nativeValue.longitude
1515

16-
override fun equals(other: Any?): Boolean = this === other || other is GeoPoint && nativeValue == other.nativeValue
16+
override fun equals(other: Any?): Boolean = this === other || (other is GeoPoint && nativeValue == other.nativeValue)
1717
override fun hashCode(): Int = nativeValue.hashCode()
1818
override fun toString(): String = nativeValue.toString()
1919
}

firebase-firestore/src/appleMain/kotlin/dev/gitlive/firebase/firestore/Timestamp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public actual class Timestamp internal actual constructor(
2020
public actual val seconds: Long = nativeValue.seconds
2121
public actual val nanoseconds: Int = nativeValue.nanoseconds
2222

23-
override fun equals(other: Any?): Boolean = this === other || other is Timestamp && nativeValue == other.nativeValue
23+
override fun equals(other: Any?): Boolean = this === other || (other is Timestamp && nativeValue == other.nativeValue)
2424
override fun hashCode(): Int = nativeValue.hashCode()
2525
override fun toString(): String = nativeValue.toString()
2626

0 commit comments

Comments
 (0)