mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-04 19:45:59 +01:00
Fix swapped 'binding' and 'certificate' in formatter
This commit is contained in:
parent
ae8cf33a9e
commit
71dcf000ef
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@
|
||||||
package org.pgpainless.wot.cli.format
|
package org.pgpainless.wot.cli.format
|
||||||
|
|
||||||
import org.pgpainless.wot.api.Binding
|
import org.pgpainless.wot.api.Binding
|
||||||
import org.pgpainless.wot.network.Depth
|
|
||||||
import org.pgpainless.wot.network.EdgeComponent
|
import org.pgpainless.wot.network.EdgeComponent
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
|
||||||
|
@ -46,7 +45,7 @@ class SQWOTFormatter: Formatter {
|
||||||
for ((eIndex, edge) in path.certifications.withIndex()) {
|
for ((eIndex, edge) in path.certifications.withIndex()) {
|
||||||
val targetUserId = if (edge.userId == null) "" else " \"${edge.userId}\""
|
val targetUserId = if (edge.userId == null) "" else " \"${edge.userId}\""
|
||||||
append(indent); appendLine("│ ${certDegree(edge.trustAmount)}the following " +
|
append(indent); appendLine("│ ${certDegree(edge.trustAmount)}the following " +
|
||||||
(if (edge.userId == null) "binding" else "certificate") +
|
(if (edge.userId != null) "binding" else "certificate") +
|
||||||
" on ${dateFormat.format(edge.creationTime)}" +
|
" on ${dateFormat.format(edge.creationTime)}" +
|
||||||
(if (edge.expirationTime == null) "" else " (expiry: ${dateFormat.format(edge.expirationTime)})") +
|
(if (edge.expirationTime == null) "" else " (expiry: ${dateFormat.format(edge.expirationTime)})") +
|
||||||
introducerType(edge)
|
introducerType(edge)
|
||||||
|
|
Loading…
Reference in a new issue