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
commit21723a3974
("*: 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:
parent
9e8bfa26d0
commit
f0d9d5891f
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue