checkForInvalidError checks for InvalidKeysError and stores the key in the map
(invalidKeys map[string]bool, err error)
| 18 | |
| 19 | // checkForInvalidError checks for InvalidKeysError and stores the key in the map |
| 20 | func checkForInvalidError(invalidKeys map[string]bool, err error) { |
| 21 | if verr, ok := err.(*InvalidKeysError); ok { |
| 22 | for _, key := range verr.Keys { |
| 23 | invalidKeys[key] = true |
| 24 | } |
| 25 | } |
| 26 | } |
no outgoing calls