From f0d9d5891f44e6726023bc5d2f3278ae9785b5a0 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 10 Sep 2025 15:41:05 +1000 Subject: [PATCH] cmd: validate: remove dead "current keyword" code commit 21723a3974bc ("*: fix comparison of missing keywords") removed the error that this for loop was intended for but left the no-op for loop in its place. Fixes: 21723a3974bc ("*: fix comparison of missing keywords") Signed-off-by: Aleksa Sarai --- cmd/gomtree/cmd/validate.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/gomtree/cmd/validate.go b/cmd/gomtree/cmd/validate.go index cc45c5e..f3b5fa6 100644 --- a/cmd/gomtree/cmd/validate.go +++ b/cmd/gomtree/cmd/validate.go @@ -219,14 +219,6 @@ func validateAction(c *cli.Context) error { if c.String("use-keywords") == "" && c.String("add-keywords") == "" { currentKeywords = specKeywords } - - for _, keyword := range currentKeywords { - // As always, time is a special case. - // TODO: Fix that. - if (keyword == "time" && mtree.InKeywordSlice("tar_time", specKeywords)) || (keyword == "tar_time" && mtree.InKeywordSlice("time", specKeywords)) { - continue - } - } } // -p and -T are mutually exclusive