Skip to content

Commit

Permalink
refactoring code for update golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
seferen committed Sep 10, 2024
1 parent 0f50dae commit c95255a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"flag"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"os/signal"
Expand Down Expand Up @@ -221,7 +221,7 @@ func readConfig(args []string) *CliConfig {
log.Info("Pandora version", zap.String("version", Version))
if useStdinConfig {
v.SetConfigType("yaml")
configBuffer, err := ioutil.ReadAll(bufio.NewReader(os.Stdin))
configBuffer, err := io.ReadAll(bufio.NewReader(os.Stdin))
if err != nil {
log.Fatal("Cannot read from standard input", zap.Error(err))
}
Expand Down

0 comments on commit c95255a

Please sign in to comment.