diff --git a/cmd/command_dbtable.go b/cmd/command_dbtable.go index c0801a9..e75ea6e 100644 --- a/cmd/command_dbtable.go +++ b/cmd/command_dbtable.go @@ -62,8 +62,7 @@ func dbTableMain(args []string) { } // Close the database. - err = db.Close() - if err != nil { + if err = db.Close(); err != nil { logError.Fatalln(err) } diff --git a/cmd/command_sshcerts.go b/cmd/command_sshcerts.go index e6a0c9f..75b42d1 100644 --- a/cmd/command_sshcerts.go +++ b/cmd/command_sshcerts.go @@ -127,8 +127,7 @@ func exportSshMain(args []string) { } // Close the database. - err = db.Close() - if err != nil { + if err = db.Close(); err != nil { logError.Fatalln(err) } diff --git a/cmd/command_x509certs.go b/cmd/command_x509certs.go index e03c1c4..2fdb193 100644 --- a/cmd/command_x509certs.go +++ b/cmd/command_x509certs.go @@ -147,8 +147,7 @@ func exportX509Main(args []string) { } // Close the database. - err = db.Close() - if err != nil { + if err = db.Close(); err != nil { logError.Fatalln(err) } diff --git a/cmd/output_x509certs.go b/cmd/output_x509certs.go index 956125c..ec7ea55 100644 --- a/cmd/output_x509certs.go +++ b/cmd/output_x509certs.go @@ -25,7 +25,6 @@ func emitX509Table(thisX509CertsWithRevocations []tX509CertificateProvisionerRev var header []string for _, column := range columns { if column.isShown(config) { - header = append(header, color.New(column.titleColor).SprintFunc()( column.title(),