Fix nil pointer (#950)

This commit is contained in:
qwerty287
2022-06-02 12:49:12 +02:00
committed by GitHub
parent cc30db44ac
commit 0426f7c5d0

View File

@@ -53,7 +53,7 @@ func (cf *configFetcher) Fetch(ctx context.Context) (files []*remote.FileMeta, e
continue
}
if cf.configExtension.IsConfigured() {
if cf.configExtension != nil && cf.configExtension.IsConfigured() {
fetchCtx, cancel := context.WithTimeout(ctx, configFetchTimeout)
defer cancel() // ok here as we only try http fetching once, returning on fail and success