mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 15:37:28 +00:00
remove unnecessary checks on slices
This commit is contained in:
@@ -234,10 +234,8 @@ func (key *PreAuthKey) toProto() *v1.PreAuthKey {
|
||||
protoKey.CreatedAt = timestamppb.New(*key.CreatedAt)
|
||||
}
|
||||
|
||||
if len(key.ACLTags) > 0 {
|
||||
for idx := range key.ACLTags {
|
||||
protoKey.AclTags[idx] = key.ACLTags[idx].Tag
|
||||
}
|
||||
for idx := range key.ACLTags {
|
||||
protoKey.AclTags[idx] = key.ACLTags[idx].Tag
|
||||
}
|
||||
|
||||
return &protoKey
|
||||
|
Reference in New Issue
Block a user