| 167 | static Try<Nothing> validateUris(const CommandInfo& commandInfo) |
| 168 | { |
| 169 | foreach (const CommandInfo::URI& uri, commandInfo.uris()) { |
| 170 | Try<Nothing> uriValidation = Fetcher::validateUri(uri.value()); |
| 171 | if (uriValidation.isError()) { |
| 172 | return Error(uriValidation.error()); |
| 173 | } |
| 174 | |
| 175 | if (uri.has_output_file()) { |
| 176 | Try<Nothing> outputFileValidation = |
| 177 | Fetcher::validateOutputFile(uri.output_file()); |
| 178 | if (outputFileValidation.isError()) { |
| 179 | return Error(outputFileValidation.error()); |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | return Nothing(); |
| 185 | } |
nothing calls this directly
no test coverage detected