From d38e675c9ef88f27130ebfe7da5724f022bd8a57 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Tue, 4 May 2021 20:13:20 +0200 Subject: [PATCH] rename one variable --- internal/models/answer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/models/answer.go b/internal/models/answer.go index 3118c81..541f640 100644 --- a/internal/models/answer.go +++ b/internal/models/answer.go @@ -17,8 +17,8 @@ const ( AnswerD Answer = "d" ) -func (role Answer) IsValid() bool { - switch role { +func (answer Answer) IsValid() bool { + switch answer { case AnswerA, AnswerB, AnswerC,