refactor: isolate expensive IsDirty() call
Some checks failed
continuous-integration/drone/push Build is failing

See #689
This commit is contained in:
2025-10-03 20:35:09 +02:00
parent 2460dd9438
commit d0ccb805c6
4 changed files with 14 additions and 14 deletions

View File

@ -305,6 +305,7 @@ func (r *Recipe) ChaosVersion() (string, error) {
if err != nil {
return "", err
}
if dirty {
return fmt.Sprintf("%s%s", version, config.DIRTY_DEFAULT), nil
}