Skip to content

Commit

Permalink
fix(kzip): --encoding flag was previously ignored (#4216)
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Nov 20, 2019
1 parent cfc1767 commit 0f1bea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kythe/go/platform/tools/kzip/flags/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (e *EncodingFlag) Get() interface{} {
// Set implements part of the flag.Value interface.
func (e *EncodingFlag) Set(v string) error {
enc, err := kzip.EncodingFor(v)
if err != nil {
if err == nil {
*e = EncodingFlag{enc}
}
return err
Expand Down

0 comments on commit 0f1bea8

Please sign in to comment.