aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-26 15:49:47 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-26 15:49:47 +0100
commitf187a2656bcdf388c08849ecd518109633948d9b (patch)
tree598b0835f421dca4cf8fc69253082a40cf2d5893
parenteeb5289f24447600150fc4af1d25634cb6c7dee9 (diff)
Bikeshadding
-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
}
}