From f187a2656bcdf388c08849ecd518109633948d9b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 26 Jan 2016 15:49:47 +0100 Subject: Bikeshadding --- messages.go | 3 +-- 1 file changed, 1 insertion(+), 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 } } -- cgit v1.2.3