Skip to content

Commit

Permalink
Remove unnecessary allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Jun 11, 2018
1 parent e9cbcc8 commit 5ee44f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/credential/approle/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 5ee44f2

Please sign in to comment.