Skip to content

Commit

Permalink
fix: add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgooz committed Aug 17, 2018
1 parent 535decf commit b5761ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/core/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ func (s *Server) DeployService(stream Core_DeployServiceServer) error {
return err
}
if validationError != nil {
if err := stream.Send(&DeployServiceReply{
return stream.Send(&DeployServiceReply{
Value: &DeployServiceReply_ValidationError{ValidationError: validationError.Error()},
}); err != nil {
return err
}
})
}

return stream.Send(&DeployServiceReply{
Expand Down

0 comments on commit b5761ab

Please sign in to comment.