(err error)
| 140 | } |
| 141 | |
| 142 | func createFolderConflictTag(err error) (string, bool) { |
| 143 | var apiErrPtr *files.CreateFolderV2APIError |
| 144 | if errors.As(err, &apiErrPtr) && apiErrPtr != nil { |
| 145 | return createFolderEndpointConflictTag(apiErrPtr.EndpointError) |
| 146 | } |
| 147 | |
| 148 | var apiErr files.CreateFolderV2APIError |
| 149 | if errors.As(err, &apiErr) { |
| 150 | return createFolderEndpointConflictTag(apiErr.EndpointError) |
| 151 | } |
| 152 | |
| 153 | return "", false |
| 154 | } |
| 155 | |
| 156 | func createFolderEndpointConflictTag(endpointErr *files.CreateFolderError) (string, bool) { |
| 157 | if endpointErr == nil || |
no test coverage detected