mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-26 01:15:00 +00:00
misc: address unnecessary use of fmt.Sprintf
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
b67a46371b
commit
3c495861a1
2 changed files with 2 additions and 2 deletions
|
|
@ -54,5 +54,5 @@ func (p *SafeRelativePath) Type() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *SafeRelativePath) Description() string {
|
func (p *SafeRelativePath) Description() string {
|
||||||
return fmt.Sprintf("secure relative path")
|
return "secure relative path"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,7 @@ func (b *PlainGitBootstrapper) ReconcileSyncConfig(ctx context.Context, options
|
||||||
return fmt.Errorf("failed to generate OpenPGP entity: %w", err)
|
return fmt.Errorf("failed to generate OpenPGP entity: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commitMsg := fmt.Sprintf("Add Flux sync manifests")
|
commitMsg := "Add Flux sync manifests"
|
||||||
if b.commitMessageAppendix != "" {
|
if b.commitMessageAppendix != "" {
|
||||||
commitMsg = commitMsg + "\n\n" + b.commitMessageAppendix
|
commitMsg = commitMsg + "\n\n" + b.commitMessageAppendix
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue