(arg *files.RelocationArg, res *files.RelocationResult)
| 19 | } |
| 20 | |
| 21 | func newRelocationResult(arg *files.RelocationArg, res *files.RelocationResult) (relocationResult, error) { |
| 22 | var metadata files.IsMetadata |
| 23 | if res != nil { |
| 24 | metadata = res.Metadata |
| 25 | } |
| 26 | return newRelocationResultFromMetadata(arg, metadata) |
| 27 | } |
| 28 | |
| 29 | func newRelocationResultFromMetadata(arg *files.RelocationArg, metadata files.IsMetadata) (relocationResult, error) { |
| 30 | result, err := jsonMetadataFromDropbox(metadata) |
no test coverage detected