mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 18:07:33 +00:00
remove unnecessary checks on slices
This commit is contained in:
@@ -108,15 +108,14 @@ var listPreAuthKeys = &cobra.Command{
|
||||
reusable = fmt.Sprintf("%v", key.GetReusable())
|
||||
}
|
||||
|
||||
var aclTags string
|
||||
aclTags := ""
|
||||
|
||||
if len(key.AclTags) > 0 {
|
||||
for _, tag := range key.AclTags {
|
||||
aclTags += "," + tag
|
||||
}
|
||||
aclTags = strings.TrimLeft(aclTags, ",")
|
||||
for _, tag := range key.AclTags {
|
||||
aclTags += "," + tag
|
||||
}
|
||||
|
||||
aclTags = strings.TrimLeft(aclTags, ",")
|
||||
|
||||
tableData = append(tableData, []string{
|
||||
key.GetId(),
|
||||
key.GetKey(),
|
||||
|
Reference in New Issue
Block a user