Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.

Fix panic: interface conversion: interface {} is nil, not map[string]…#4

Open
gadelkareem wants to merge 11 commits intonuveo:masterfrom
gadelkareem:master
Open

Fix panic: interface conversion: interface {} is nil, not map[string]…#4
gadelkareem wants to merge 11 commits intonuveo:masterfrom
gadelkareem:master

Conversation

@gadelkareem
Copy link

…interface {}

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source is not formatted in canonical gofmt style

Suggested change
if response["taskId"] == nil {
if response["taskId"] == nil {

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source is not formatted in canonical gofmt style

Suggested change
if responseBody["taskId"] == nil {
if responseBody["taskId"] == nil {

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source is not formatted in canonical gofmt style

Suggested change
if reflect.ValueOf(responseBody["taskId"]).IsNil() {
if reflect.ValueOf(responseBody["taskId"]).IsNil() {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant