Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Matyushentsev authored and Alexander Matyushentsev committed Apr 9, 2018
1 parent 0002f8d commit 150b51a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ func (s *Server) DeletePod(ctx context.Context, q *DeletePodQuery) (*Application
if err != nil {
return nil, err
}
kubeClientset.CoreV1().Pods(namespace).Delete(q.PodName, &metav1.DeleteOptions{})
err = kubeClientset.CoreV1().Pods(namespace).Delete(q.PodName, &metav1.DeleteOptions{})
if err != nil {
return nil, err
}
return &ApplicationResponse{}, nil
}

Expand Down Expand Up @@ -249,7 +252,7 @@ func (s *Server) PodLogs(q *PodLogsQuery, ws ApplicationService_PodLogsServer) e
}()
select {
case <-ws.Context().Done():
stream.Close()
util.Close(stream)
case <-done:
}
return nil
Expand Down

0 comments on commit 150b51a

Please sign in to comment.