From 796225448b7c5b6394f725ceae3b40959bc81284 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 26 Jan 2016 11:57:35 +0100 Subject: unify --- messages.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/messages.go b/messages.go index 796d0e2..c0209aa 100644 --- a/messages.go +++ b/messages.go @@ -47,9 +47,9 @@ type Authorization struct { } func (a Authorization) Supported(sol map[ChalType]Solver) []Challenge { - supported := func(c []int) bool { - for _, com := range c { - ch := a.Challenges[com] + supported := func(com []int) bool { + for _, n := range com { + ch := a.Challenges[n] if _, ok := sol[ch.Type]; !ok { return false } -- cgit v1.2.3