style: apply ktlint formatting fixes
https://claude.ai/code/session_01HeWiRdKDTnMGfEBUegk3d1
This commit is contained in:
+2
-1
@@ -678,7 +678,8 @@ class QueryBuilder(
|
||||
val search: String? = null,
|
||||
) {
|
||||
fun isSimpleSearch() =
|
||||
search != null && search.isNotEmpty() &&
|
||||
search != null &&
|
||||
search.isNotEmpty() &&
|
||||
(nonDTagsIn == null || nonDTagsIn.isEmpty()) &&
|
||||
(nonDTagsAll == null || nonDTagsAll.isEmpty())
|
||||
|
||||
|
||||
+2
-1
@@ -301,7 +301,8 @@ class NamecoinNameResolver(
|
||||
pubkey = rootMatch.content
|
||||
}
|
||||
|
||||
firstEntry != null && firstEntry.value is JsonPrimitive &&
|
||||
firstEntry != null &&
|
||||
firstEntry.value is JsonPrimitive &&
|
||||
isValidPubkey((firstEntry.value as JsonPrimitive).content) -> {
|
||||
resolvedLocalPart = firstEntry.key
|
||||
pubkey = (firstEntry.value as JsonPrimitive).content
|
||||
|
||||
+6
-3
@@ -217,9 +217,12 @@ object ChessStateReconstructor {
|
||||
return fen1 == fen2 // Fallback to exact match
|
||||
}
|
||||
|
||||
return parts1[0] == parts2[0] && // Board position
|
||||
parts1[1] == parts2[1] && // Active color
|
||||
parts1[2] == parts2[2] && // Castling rights
|
||||
return parts1[0] == parts2[0] &&
|
||||
// Board position
|
||||
parts1[1] == parts2[1] &&
|
||||
// Active color
|
||||
parts1[2] == parts2[2] &&
|
||||
// Castling rights
|
||||
parts1[3] == parts2[3] // En passant
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -212,7 +212,8 @@ actual class ChessEngine {
|
||||
board.getPiece(toSquare) != Piece.NONE ||
|
||||
(
|
||||
pt == com.github.bhlangonijr.chesslib.PieceType.PAWN &&
|
||||
epTarget != Square.NONE && toSquare == epTarget
|
||||
epTarget != Square.NONE &&
|
||||
toSquare == epTarget
|
||||
)
|
||||
|
||||
if (pt != com.github.bhlangonijr.chesslib.PieceType.PAWN) {
|
||||
|
||||
+2
-1
@@ -261,7 +261,8 @@ class NamecoinNameResolverTest {
|
||||
pubkey = rootMatch.content
|
||||
}
|
||||
|
||||
firstEntry != null && firstEntry.value is kotlinx.serialization.json.JsonPrimitive &&
|
||||
firstEntry != null &&
|
||||
firstEntry.value is kotlinx.serialization.json.JsonPrimitive &&
|
||||
(firstEntry.value as kotlinx.serialization.json.JsonPrimitive)
|
||||
.content
|
||||
.matches(Regex("^[0-9a-fA-F]{64}$")) -> {
|
||||
|
||||
Reference in New Issue
Block a user