Skip to content

Commit

Permalink
Merge pull request kubernetes#34498 from mml/remotecommand-golint
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Fix lint error in remotecommand.go

Before:

```
pkg/client/unversioned/remotecommand/remotecommand.go:101:9: should omit type http.RoundTripper from declaration of var rt; it will be inferred from the right-hand side

Please fix the above errors. You can test via "golint" and commit the result.
```
  • Loading branch information
Kubernetes Submit Queue authored Oct 18, 2016
2 parents 16fa327 + 805a740 commit e6cc8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/unversioned/remotecommand/remotecommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func NewExecutor(config *restclient.Config, method string, url *url.URL) (Stream
// to wrap the round tripper. This method may be used by clients that are lower level than
// Kubernetes clients or need to provide their own upgrade round tripper.
func NewStreamExecutor(upgrader httpstream.UpgradeRoundTripper, fn func(http.RoundTripper) http.RoundTripper, method string, url *url.URL) (StreamExecutor, error) {
var rt http.RoundTripper = upgrader
rt := http.RoundTripper(upgrader)
if fn != nil {
rt = fn(rt)
}
Expand Down

0 comments on commit e6cc8ff

Please sign in to comment.