Skip to content

Commit

Permalink
Merge branch 'main' into talign
Browse files Browse the repository at this point in the history
  • Loading branch information
GiteaBot authored Mar 26, 2024
2 parents be287af + 08aec2c commit 7faf813
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/doctor/fix16961.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ func fixBrokenRepoUnit16961(repoUnit *repo_model.RepoUnit, bs []byte) (fixed boo
return false, nil
}

var cfg any
err = json.UnmarshalHandleDoubleEncode(bs, &cfg)
if err == nil {
return false, nil
}

switch repoUnit.Type {
case unit.TypeCode, unit.TypeReleases, unit.TypeWiki, unit.TypeProjects:
cfg := &repo_model.UnitConfig{}
Expand Down

0 comments on commit 7faf813

Please sign in to comment.