cmd/root: Style fix

Fallout from 4a1aa4652e and
c2ba67569b

https://github.com/containers/toolbox/pull/1623
This commit is contained in:
Debarshi Ray 2025-04-10 20:38:25 +02:00
parent fb4cb2eb90
commit 3321bb20b6
1 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,9 @@ func migrate(cmd *cobra.Command, args []string) error {
stampBytes, err := ioutil.ReadFile(stampPath)
if err != nil {
if !os.IsNotExist(err) {
logrus.Debugf("Migrating to newer Podman: failed to read migration stamp file %s: %s", stampPath, err)
logrus.Debugf("Migrating to newer Podman: failed to read migration stamp file %s: %s",
stampPath,
err)
return errors.New("failed to read migration stamp file")
}
} else {
@ -291,9 +293,7 @@ func migrate(cmd *cobra.Command, args []string) error {
logrus.Debugf("Old Podman version is %s", podmanVersionOld)
if podmanVersion == podmanVersionOld {
logrus.Debugf("Migration not needed: Podman version %s is unchanged",
podmanVersion)
logrus.Debugf("Migration not needed: Podman version %s is unchanged", podmanVersion)
return nil
}