From ee2277826498c042070ae26d9a117bea38239496 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 24 Oct 2019 14:37:51 -0700 Subject: [PATCH] Fix lint error. --- authority/authority.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/authority/authority.go b/authority/authority.go index 34eee14b..db038d85 100644 --- a/authority/authority.go +++ b/authority/authority.go @@ -195,15 +195,11 @@ func (a *Authority) init() error { if a.config.SSH != nil { if a.sshCAHostCertSignKey != nil { vars.SSH.HostKey = a.sshCAHostCertSignKey.PublicKey() - for _, k := range a.sshCAHostFederatedCerts[1:] { - vars.SSH.HostFederatedKeys = append(vars.SSH.HostFederatedKeys, k) - } + vars.SSH.HostFederatedKeys = append(vars.SSH.HostFederatedKeys, a.sshCAHostFederatedCerts[1:]...) } if a.sshCAUserCertSignKey != nil { vars.SSH.UserKey = a.sshCAUserCertSignKey.PublicKey() - for _, k := range a.sshCAUserFederatedCerts[1:] { - vars.SSH.UserFederatedKeys = append(vars.SSH.UserFederatedKeys, k) - } + vars.SSH.UserFederatedKeys = append(vars.SSH.UserFederatedKeys, a.sshCAUserFederatedCerts[1:]...) } } t.Data["Step"] = vars