Skip to content

Commit

Permalink
Fixed extra newline character being read into the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-Zheng committed Feb 1, 2023
1 parent 88624b9 commit 0e198b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gcsim/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"os/exec"
"runtime"
"runtime/pprof"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -80,7 +81,7 @@ can be viewed in the browser via "go tool pprof -http=localhost:3000 mem.prof" (
fmt.Println("What is the filepath of the config you would like to run?")
in := bufio.NewReader(os.Stdin)
line, _ := in.ReadString('\n')
opt.config = line
opt.config = strings.TrimSpace(line)
opt.serve = true
}

Expand Down

0 comments on commit 0e198b5

Please sign in to comment.