Skip to content

Commit

Permalink
Merge pull request #281 from stmcginnis/ioutil
Browse files Browse the repository at this point in the history
Drop use of deprecated ioutils package
  • Loading branch information
cjimti authored Oct 8, 2024
2 parents d6a3395 + d3d8b2f commit a49927c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/kubefwd/kubefwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -18,7 +18,7 @@ package main
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"os"

log "github.com/sirupsen/logrus"
Expand All @@ -39,7 +39,7 @@ func init() {

log.SetOutput(&LogOutputSplitter{})
if len(args) > 0 && (args[0] == "completion" || args[0] == "__complete") {
log.SetOutput(ioutil.Discard)
log.SetOutput(io.Discard)
}
}

Expand Down

0 comments on commit a49927c

Please sign in to comment.