({ providerHostname, file, entity })
| 48 | ] |
| 49 | |
| 50 | getEntityUrl ({ providerHostname, file, entity }) { |
| 51 | if (file) { |
| 52 | return new URL(`${entity}/-/blob/HEAD/${file}`, providerHostname).toString() |
| 53 | } |
| 54 | return new URL(entity, providerHostname).toString() |
| 55 | } |
| 56 | |
| 57 | validateEntity (entity) { |
| 58 | if (entity.split('/').length < 2) { |
no test coverage detected