1
0
mirror of https://github.com/Jguer/yay synced 2024-07-08 04:16:16 +00:00

chore(install): reduce scope of toSkipSlice

This commit is contained in:
jguer 2021-10-11 00:06:53 +02:00 committed by J Guerreiro
parent 34e81d5d7d
commit 1fb9f410a6

View File

@ -239,8 +239,7 @@ func install(ctx context.Context, cmdArgs *parser.Arguments, dbExecutor db.Execu
}
}
toSkipSlice := toSkip.ToSlice()
if len(toSkipSlice) != 0 {
if toSkipSlice := toSkip.ToSlice(); len(toSkipSlice) != 0 {
text.OperationInfoln(
gotext.Get("PKGBUILD up to date, Skipping (%d/%d): %s",
len(toSkipSlice), len(toClone), text.Cyan(strings.Join(toSkipSlice, ", "))))