1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-10-03 20:21:01 +00:00

cmd: validate: remove dead "current keyword" code

commit 21723a3974 ("*: 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: 21723a3974 ("*: fix comparison of missing keywords")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai 2025-09-10 15:41:05 +10:00
parent 9e8bfa26d0
commit f0d9d5891f
No known key found for this signature in database
GPG key ID: 2897FAD2B7E9446F

View file

@ -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