Open Nixarn opened 5 years ago
Minor syntax error. In the example that casts errors to googleapi errors it says:
if e, ok := err.(*googleapi.Error); ok { if e.Code = 409 { ... } }
It should be "e.Code == 409"
Can you provide a link to where this should be fixed? Also, I would imagine that this change needs to be merged into the target repo?
Looks like it's here, coming from this file.
This doesn't seem to be a problem with gddo, as the mistake is within Google's documentation.
Minor syntax error. In the example that casts errors to googleapi errors it says:
if e, ok := err.(*googleapi.Error); ok { if e.Code = 409 { ... } }
It should be "e.Code == 409"