reduce scope

This commit is contained in:
jguer 2022-11-01 23:51:24 +01:00
parent b5bdcfbd1a
commit 0b3ca79788
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35

View File

@ -54,9 +54,8 @@ func setPkgReason(ctx context.Context, cmdArgs *parser.Arguments, pkgs []string,
cmdArgs.AddTarget(pkgName)
}
err := config.Runtime.CmdBuilder.Show(config.Runtime.CmdBuilder.BuildPacmanCmd(ctx,
cmdArgs, config.Runtime.Mode, settings.NoConfirm))
if err != nil {
if err := config.Runtime.CmdBuilder.Show(config.Runtime.CmdBuilder.BuildPacmanCmd(ctx,
cmdArgs, config.Runtime.Mode, settings.NoConfirm)); err != nil {
return &SetPkgReasonError{exp: exp}
}