Skip to content

Commit

Permalink
Don't dump errata to disk when not found
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Sep 3, 2024
1 parent 2dda01b commit 550a31f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions errata/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func LoadErrataConfig(specRoot string) {
slog.Warn("errata points to non-existent file", "path", p)
}
}
dumpConfig(errataPath)
} else {
b, err := os.ReadFile(errataPath)
if err != nil {
Expand All @@ -43,7 +42,6 @@ func LoadErrataConfig(specRoot string) {
}
slog.Warn("Using errata overlay", slog.Any("path", errataPath), slog.Any("count", len(errataOverlay.Errata)))
Erratas = errataOverlay.Errata
dumpConfig(errataPath)
}

}
Expand Down

0 comments on commit 550a31f

Please sign in to comment.