aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/messages.go b/messages.go
index c6f11ae..cb2adf7 100644
--- a/messages.go
+++ b/messages.go
@@ -49,8 +49,7 @@ type Authorization struct {
func (a Authorization) Supported(sol map[ChalType]Solver) []Challenge {
supported := func(com []int) bool {
for _, n := range com {
- ch := a.Challenges[n]
- if _, ok := sol[ch.Type]; !ok {
+ if _, ok := sol[a.Challenges[n].Type]; !ok {
return false
}
}