Skip to content

Commit

Permalink
Detekt fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dries Samyn committed Oct 24, 2024
1 parent a809d7f commit a3488b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package net.corda.ledger.libs.persistence.util

import net.corda.ledger.libs.persistence.utxo.impl.UtxoPersistenceServiceImpl
import org.slf4j.Logger
import org.slf4j.LoggerFactory

interface NamedParamQuery {
companion object {
fun from(sql: String): NamedParamQuery {
Expand Down Expand Up @@ -49,4 +45,4 @@ interface NamedParamQuery {
override val sql: String,
override val fields: Map<String, Int>,
) : NamedParamQuery
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class NamedParamStatement(
}

fun executeQuery(): ResultSet {
if(log.isDebugEnabled) log.debug("Execute Query: $statement")
if (log.isDebugEnabled) log.debug("Execute Query: $statement")
return statement.executeQuery()
}

Expand Down Expand Up @@ -57,7 +57,7 @@ class NamedParamStatement(
}

fun executeUpdate(): Int {
if(log.isDebugEnabled) log.debug("Execute Update: $statement")
if (log.isDebugEnabled) log.debug("Execute Update: $statement")

return statement.executeUpdate()
}
Expand Down

0 comments on commit a3488b7

Please sign in to comment.