Remove unnecessary BadgenError import

pull/442/head
lucashalbert 2020-10-21 19:14:36 -04:00
rodzic d0d2514d8a
commit 7a42dd03f8
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1,5 +1,4 @@
import got from './got'
import { BadgenError } from './create-badgen-handler'
// request image specific DockerHub pull token
export function getDockerAuthToken<T = any>(scope: string, name: string) {
@ -32,4 +31,4 @@ export function getDockerImageManifest<T = any>(scope: string, name: string, dig
const prefixUrl = process.env.DOCKER_REGISTRY_API || 'https://registry.hub.docker.com/'
const path = `v2/${scope}/${name}/manifests/${digest}`
return got.get(path, { prefixUrl, headers }).json<T>()
}
}