Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Jan 15, 2020
1 parent 04fbd63 commit 59d7eb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,8 @@ func (s *Server) getComponentConfig(ctx context.Context, version *configpb.Versi
}
var config string
switch status.GetCode() {
case configpb.StatusCode_OK:
config = cfg
case configpb.StatusCode_WRONG_VERSION:
config = cfg
s.setConfigVersion(v)
case configpb.StatusCode_UNKNOWN:
return "", errors.Errorf("unknown error: %v", status.GetMessage())
Expand Down

0 comments on commit 59d7eb5

Please sign in to comment.