aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/messages.go b/messages.go
index f1bda5f..c6f11ae 100644
--- a/messages.go
+++ b/messages.go
@@ -58,10 +58,9 @@ func (a Authorization) Supported(sol map[ChalType]Solver) []Challenge {
}
for _, com := range a.Combinations {
if supported(com) {
- var c []Challenge
- for _, n := range com {
- ch := a.Challenges[n]
- c = append(c, ch)
+ c := make([]Challenge, len(com))
+ for i, n := range com {
+ c[i] = a.Challenges[n]
}
return c
}