mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 08:25:38 +00:00
tar: more clear if
predicate
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
48e7ab8031
commit
2a99b062a7
1 changed files with 3 additions and 3 deletions
6
tar.go
6
tar.go
|
@ -51,12 +51,12 @@ func (ts *tarStream) readHeaders() {
|
||||||
notimekws := []string{}
|
notimekws := []string{}
|
||||||
for _, kw := range ts.keywords {
|
for _, kw := range ts.keywords {
|
||||||
if !inSlice(kw, notimekws) {
|
if !inSlice(kw, notimekws) {
|
||||||
if kw != "time" {
|
if kw == "time" {
|
||||||
notimekws = append(notimekws, kw)
|
|
||||||
} else {
|
|
||||||
if !inSlice("tar_time", ts.keywords) {
|
if !inSlice("tar_time", ts.keywords) {
|
||||||
notimekws = append(notimekws, "tar_time")
|
notimekws = append(notimekws, "tar_time")
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
notimekws = append(notimekws, kw)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue