mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 20:26:34 +00:00
Fix nil pointer (#950)
This commit is contained in:
@@ -53,7 +53,7 @@ func (cf *configFetcher) Fetch(ctx context.Context) (files []*remote.FileMeta, e
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if cf.configExtension.IsConfigured() {
|
if cf.configExtension != nil && cf.configExtension.IsConfigured() {
|
||||||
fetchCtx, cancel := context.WithTimeout(ctx, configFetchTimeout)
|
fetchCtx, cancel := context.WithTimeout(ctx, configFetchTimeout)
|
||||||
defer cancel() // ok here as we only try http fetching once, returning on fail and success
|
defer cancel() // ok here as we only try http fetching once, returning on fail and success
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user