Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

fix ineffectual assignment to err #56

Merged
merged 1 commit into from
May 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions virtualcluster/cmd/kubectl-vc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func readFromFileOrURL(path string) ([]byte, error) {
defer resp.Body.Close()

yamlContent, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, err
}
return yamlContent, nil
}
// read from a file
Expand Down