Cleaned up.

This commit is contained in:
Erik C. Thauvin 2021-11-28 23:27:32 -08:00
parent 65e221a4f6
commit 54e6e6dd87
2 changed files with 4 additions and 4 deletions

View file

@ -60,8 +60,8 @@ class Addons {
if (isEnabled) { if (isEnabled) {
modules.add(this) modules.add(this)
modulesNames.add(this.javaClass.simpleName) modulesNames.add(javaClass.simpleName)
names.addAll(this.commands) names.addAll(commands)
} }
} }
} }

View file

@ -110,7 +110,7 @@ class Pinboard {
*/ */
private fun Date.toTimestamp(): String { private fun Date.toTimestamp(): String {
return ZonedDateTime.ofInstant( return ZonedDateTime.ofInstant(
this.toInstant().truncatedTo(ChronoUnit.SECONDS), toInstant().truncatedTo(ChronoUnit.SECONDS),
ZoneId.systemDefault() ZoneId.systemDefault()
).format(DateTimeFormatter.ISO_INSTANT) ).format(DateTimeFormatter.ISO_INSTANT)
} }
@ -119,7 +119,7 @@ class Pinboard {
* Returns the pinboard.in extended attribution line. * Returns the pinboard.in extended attribution line.
*/ */
private fun EntryLink.postedBy(ircServer: String): String { private fun EntryLink.postedBy(ircServer: String): String {
return "Posted by ${this.nick} on ${this.channel} ( $ircServer )" return "Posted by $nick on $channel ( $ircServer )"
} }
} }