Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/RenameSubcommand.kt @ 15:0fc90892a3ae
Add password subcommand.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 03 Feb 2023 18:48:13 -0800 |
parents | 4dae7a15ee48 |
children | ea65ab890f66 |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/RenameSubcommand.kt Tue Jan 31 19:07:46 2023 -0800 +++ b/src/main/kotlin/name/blackcap/passman/RenameSubcommand.kt Fri Feb 03 18:48:13 2023 -0800 @@ -95,12 +95,4 @@ it.executeUpdate() } } - - private fun PreparedStatement.setDateOrNull(parameterIndex: Int, value: Long?) { - if (value == null || value == 0L) { - setNull(parameterIndex, Types.INTEGER) - } else { - setLong(parameterIndex, value) - } - } }