Make returned error consistent.
Syfaro syfaro@huefox.com
Tue, 21 Jul 2020 03:56:23 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bot.go
→
bot.go
@@ -111,7 +111,7 @@ parameters := ResponseParameters{}
if apiResp.Parameters != nil { parameters = *apiResp.Parameters } - return apiResp, &Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} + return apiResp, Error{Code: apiResp.ErrorCode, Message: apiResp.Description, ResponseParameters: parameters} } return apiResp, nil