Skip to content

Commit

Permalink
Rename a variable in a test (graph-gophers#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelnikolov authored and KNiepok committed Feb 28, 2023
1 parent 9d3eb0c commit 3d73dc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ func (s {{ $enum.Name }}) String() string { return {{ $enum.Name | toLower }}Ite
func (s *{{ $enum.Name }}) Deserialize(str string) {
var found bool
for i, st := range {{ $enum.Name | toLower }}Items {
if st == str {
for i, v := range {{ $enum.Name | toLower }}Items {
if v == str {
found = true
(*s) = {{ $enum.Name }}(i)
}
Expand Down Expand Up @@ -361,8 +361,8 @@ func (s *{{ $enum.Name }}) UnmarshalGraphQL(input interface{}) error {
//
// func (s *Season) Deserialize(str string) {
// var found bool
// for i, st := range seasonItems {
// if st == str {
// for i, v := range seasonItems {
// if v == str {
// found = true
// (*s) = Season(i)
// }
Expand Down

0 comments on commit 3d73dc9

Please sign in to comment.