Explorar el Código

CustomerError

- refactoring
Alexey Kim hace 2 años
padre
commit
592aaef230
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      graphql/errors.go

+ 1 - 2
graphql/errors.go

@@ -14,9 +14,8 @@ var (
 )
 
 func CustomerError(code generated.CustomerErrorCode, err error, fields ...string) *generated.CustomerUserError {
-	k := code
 	return &generated.CustomerUserError{
-		Code:    &k,
+		Code:    &code,
 		Field:   fields,
 		Message: err.Error(),
 	}