mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
cmd/stateth: use filepath.join instead of plus
This commit is contained in:
parent
a101ff35c6
commit
8371bd16e3
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
|
@ -268,7 +269,7 @@ func importGrafanaDashboards(c *cli.Context) error {
|
|||
if strings.Contains(name, "json") {
|
||||
log.Info("importing dashboard", "dashboard", name)
|
||||
|
||||
blob, err := ioutil.ReadFile(dashboardsFolder + "/" + name)
|
||||
blob, err := ioutil.ReadFile(filepath.Join(dashboardsFolder, name))
|
||||
if err != nil {
|
||||
log.Warn(err.Error())
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue