From 5ee44f26c99cdb3ceefee9930bd627b707fc61f4 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 11 Jun 2018 11:06:21 -0400 Subject: [PATCH] Remove unnecessary allocation --- builtin/credential/approle/path_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/credential/approle/path_login.go b/builtin/credential/approle/path_login.go index cec371e7a63b..5dc03759852e 100644 --- a/builtin/credential/approle/path_login.go +++ b/builtin/credential/approle/path_login.go @@ -83,7 +83,7 @@ func (b *backend) pathLoginUpdate(ctx context.Context, req *logical.Request, dat return logical.ErrorResponse("invalid role ID"), nil } - metadata := make(map[string]string) + var metadata map[string]string if role.BindSecretID { secretID := strings.TrimSpace(data.Get("secret_id").(string)) if secretID == "" {