Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
Not sure why this only shows up soemtimes, but in
any case the modification is a better way to handle
initializing an empty array

Change-Id: I101e91f2f6b2aefc2c5cdb04ce48781faa106619
Signed-off-by: mastersingh <[email protected]>
  • Loading branch information
mastersingh24 committed Jan 16, 2017
1 parent 7161014 commit 1ee390f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/server/tcert.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func getUserInfo(id string, attrNames []string) ([]tcert.Attribute, []string, er
log.Fatal("Failed to get RootPreKey")
return nil, nil, err
}
attrs := make([]tcert.Attribute, 0)
var attrs []tcert.Attribute
for _, name := range attrNames {
value := user.GetAttribute(name)
if value != "" {
Expand Down

0 comments on commit 1ee390f

Please sign in to comment.