Fix panic: interface conversion: interface {} is nil, not map[string]…#4
Fix panic: interface conversion: interface {} is nil, not map[string]…#4gadelkareem wants to merge 11 commits intonuveo:masterfrom
Conversation
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
anticaptcha.go
Outdated
| // Decode response | ||
| responseBody := make(map[string]interface{}) | ||
| json.NewDecoder(resp.Body).Decode(&responseBody) | ||
| if response["taskId"] == nil { |
There was a problem hiding this comment.
source is not formatted in canonical gofmt style
| if response["taskId"] == nil { | |
| if response["taskId"] == nil { |
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
anticaptcha.go
Outdated
| // Decode response | ||
| responseBody := make(map[string]interface{}) | ||
| json.NewDecoder(resp.Body).Decode(&responseBody) | ||
| if responseBody["taskId"] == nil { |
There was a problem hiding this comment.
source is not formatted in canonical gofmt style
| if responseBody["taskId"] == nil { | |
| if responseBody["taskId"] == nil { |
ghost
left a comment
There was a problem hiding this comment.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
| // Decode response | ||
| responseBody := make(map[string]interface{}) | ||
| json.NewDecoder(resp.Body).Decode(&responseBody) | ||
| if reflect.ValueOf(responseBody["taskId"]).IsNil() { |
There was a problem hiding this comment.
source is not formatted in canonical gofmt style
| if reflect.ValueOf(responseBody["taskId"]).IsNil() { | |
| if reflect.ValueOf(responseBody["taskId"]).IsNil() { |
…interface {}