pkg/scan: fix dropped error

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
Lars Lehtonen 2022-04-18 10:34:27 -07:00
parent 5eb0c083dd
commit ef835e107a
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -182,9 +182,11 @@ func (j *Job) Run(ctx job.Context, params job.Parameters) error {
robotAccount, _ := extractRobotAccount(params)
var authorization string
var tokenURL string
authType, _ := extractAuthType(params)
if authType == authorizationBearer {
tokenURL, err := getInternalTokenServiceEndpoint(ctx)
tokenURL, err = getInternalTokenServiceEndpoint(ctx)
if err != nil {
return errors.Wrap(err, "scan job: get token service endpoint")
}