mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Fix nil pointer issue with config-service (#953)
This commit is contained in:
parent
0426f7c5d0
commit
a561058fee
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ func PostBuild(c *gin.Context) {
|
|||
}
|
||||
|
||||
// If config extension is active we should refetch the config in case something changed
|
||||
if server.Config.Services.ConfigService.IsConfigured() {
|
||||
if server.Config.Services.ConfigService != nil && server.Config.Services.ConfigService.IsConfigured() {
|
||||
currentFileMeta := make([]*remote.FileMeta, len(configs))
|
||||
for i, cfg := range configs {
|
||||
currentFileMeta[i] = &remote.FileMeta{Name: cfg.Name, Data: cfg.Data}
|
||||
|
|
Loading…
Reference in a new issue