Skip to content

Commit

Permalink
fix(tooling): do not consider the empty kzip an error (#4111)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroederc committed Oct 1, 2019
1 parent 3207a48 commit 7dc4543
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kythe/go/platform/kzip/kzip.go
Expand Up @@ -215,9 +215,6 @@ func unitPrefix(root string, fs []*zip.File) (string, error) {
return fs[i].Name > protoDir
})
hasProto := p < len(fs) && strings.HasPrefix(fs[p].Name, protoDir)
if !hasJSON && !hasProto {
return "", fmt.Errorf("no compilation units found")
}
if hasJSON && hasProto {
// validate that they have identical units based on hash
for p < len(fs) && j < len(fs) {
Expand Down

0 comments on commit 7dc4543

Please sign in to comment.