From 18c3f8f3f132632da1f91855330e6761e18aa1b4 Mon Sep 17 00:00:00 2001 From: Rigel Date: Mon, 23 Apr 2018 15:01:40 -0400 Subject: [PATCH] writeDefaultCondigFile -> writeDefaultConfigFile (#1490) --- config/toml.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/toml.go b/config/toml.go index 71b8b2e81..f1c869355 100644 --- a/config/toml.go +++ b/config/toml.go @@ -37,13 +37,13 @@ func EnsureRoot(rootDir string) { // Write default config file if missing. if !cmn.FileExists(configFilePath) { - writeDefaultCondigFile(configFilePath) + writeDefaultConfigFile(configFilePath) } } // XXX: this func should probably be called by cmd/tendermint/commands/init.go // alongside the writing of the genesis.json and priv_validator.json -func writeDefaultCondigFile(configFilePath string) { +func writeDefaultConfigFile(configFilePath string) { WriteConfigFile(configFilePath, DefaultConfig()) } @@ -267,7 +267,7 @@ func ResetTestRoot(testName string) *Config { // Write default config file if missing. if !cmn.FileExists(configFilePath) { - writeDefaultCondigFile(configFilePath) + writeDefaultConfigFile(configFilePath) } if !cmn.FileExists(genesisFilePath) { cmn.MustWriteFile(genesisFilePath, []byte(testGenesis), 0644)