File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ func (s {{ $enum.Name }}) String() string { return {{ $enum.Name | toLower }}Ite
288
288
289
289
func (s *{{ $enum.Name }}) Deserialize(str string) {
290
290
var found bool
291
- for i, st := range {{ $enum.Name | toLower }}Items {
292
- if st == str {
291
+ for i, v := range {{ $enum.Name | toLower }}Items {
292
+ if v == str {
293
293
found = true
294
294
(*s) = {{ $enum.Name }}(i)
295
295
}
@@ -361,8 +361,8 @@ func (s *{{ $enum.Name }}) UnmarshalGraphQL(input interface{}) error {
361
361
//
362
362
// func (s *Season) Deserialize(str string) {
363
363
// var found bool
364
- // for i, st := range seasonItems {
365
- // if st == str {
364
+ // for i, v := range seasonItems {
365
+ // if v == str {
366
366
// found = true
367
367
// (*s) = Season(i)
368
368
// }
You can’t perform that action at this time.
0 commit comments