Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
djui committed May 6, 2022
1 parent 5edc905 commit 609b600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func TestTLSSkipVerify(t *testing.T) {
shutdownServer := setupHttpsServer(t)
defer shutdownServer()

ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

resources, _ := parseResources([]string{
"https://localhost:55372",
Expand Down
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ func indexOf(l []string, s string) int {
return -1
}

func stdinFromPipe() bool {
stat, _ := os.Stdin.Stat()
return (stat.Mode() & os.ModeNamedPipe) != 0
}

func readFromFile(filepath string) ([]string, error) {
f := os.Stdin
if filepath != "-" {
Expand Down

0 comments on commit 609b600

Please sign in to comment.