mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
reduce scope
This commit is contained in:
parent
b5bdcfbd1a
commit
0b3ca79788
@ -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}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user