aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-26 11:57:35 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-26 11:57:35 +0100
commit796225448b7c5b6394f725ceae3b40959bc81284 (patch)
tree2fb62bd1bddc3e63c1ea4fe41ca7fd1a1010197b
parentbd916924efa5c69db53a76d34538845c65cc1b6f (diff)
unify
-rw-r--r--messages.go6
1 files 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
}