From f755fddc351980308c295646a2a6988926ce9a14 Mon Sep 17 00:00:00 2001
From: Mariano Cano <mariano@smallstep.com>
Date: Wed, 24 Apr 2019 14:59:01 -0700
Subject: [PATCH] Fix lint errors.

---
 authority/provisioner/aws.go      | 3 +++
 authority/provisioner/gcp_test.go | 1 +
 2 files changed, 4 insertions(+)

diff --git a/authority/provisioner/aws.go b/authority/provisioner/aws.go
index 0692a638..612a2498 100644
--- a/authority/provisioner/aws.go
+++ b/authority/provisioner/aws.go
@@ -200,6 +200,9 @@ func (p *AWS) GetIdentityToken() (string, error) {
 		jose.SigningKey{Algorithm: jose.HS256, Key: signature},
 		new(jose.SignerOptions).WithType("JWT"),
 	)
+	if err != nil {
+		return "", errors.Wrap(err, "error creating signer")
+	}
 
 	now := time.Now()
 	payload := awsPayload{
diff --git a/authority/provisioner/gcp_test.go b/authority/provisioner/gcp_test.go
index 98b45907..4e63c2b1 100644
--- a/authority/provisioner/gcp_test.go
+++ b/authority/provisioner/gcp_test.go
@@ -226,6 +226,7 @@ func TestGCP_AuthorizeSign(t *testing.T) {
 		"https://foo.bar.zar", p1.GetID(),
 		"instance-id", "instance-name", "project-id", "zone",
 		time.Now(), &p1.keyStore.keySet.Keys[0])
+	assert.FatalError(t, err)
 	failAud, err := generateGCPToken(p1.ServiceAccounts[0],
 		"https://accounts.google.com", "gcp:foo",
 		"instance-id", "instance-name", "project-id", "zone",