Explorar o código

CustomerError

- refactoring
Alexey Kim %!s(int64=2) %!d(string=hai) anos
pai
achega
592aaef230
Modificáronse 1 ficheiros con 1 adicións e 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(),
 	}