From 71dcf000efcaf9d52f5e4ad9641a12e56ac75bc6 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 17 Jul 2023 16:43:12 +0200 Subject: [PATCH] Fix swapped 'binding' and 'certificate' in formatter --- .../kotlin/org/pgpainless/wot/cli/format/SQWOTFormatter.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/format/SQWOTFormatter.kt b/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/format/SQWOTFormatter.kt index 14e2dca7..27de7fb1 100644 --- a/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/format/SQWOTFormatter.kt +++ b/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/format/SQWOTFormatter.kt @@ -5,7 +5,6 @@ package org.pgpainless.wot.cli.format import org.pgpainless.wot.api.Binding -import org.pgpainless.wot.network.Depth import org.pgpainless.wot.network.EdgeComponent import java.text.SimpleDateFormat @@ -46,7 +45,7 @@ class SQWOTFormatter: Formatter { for ((eIndex, edge) in path.certifications.withIndex()) { val targetUserId = if (edge.userId == null) "" else " \"${edge.userId}\"" 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)}" + (if (edge.expirationTime == null) "" else " (expiry: ${dateFormat.format(edge.expirationTime)})") + introducerType(edge)