move err checking to before the value was used
This commit is contained in:
parent
a92d101fe1
commit
8d384e2124
@ -150,13 +150,13 @@ func buildManifest(r *t.Repo) (*tq.Manifest, error) {
|
||||
}
|
||||
|
||||
apiClient, err := lfsapi.NewClient(r)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
apiClient.Endpoints = &constantEndpoint{
|
||||
e: endp,
|
||||
EndpointFinder: apiClient.Endpoints,
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return tq.NewManifest(r.Filesystem(), apiClient, "", ""), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user