Minor rename
This commit is contained in:
@@ -12,7 +12,7 @@ const KEY_FILE: &str = "keys.pem";
|
|||||||
const CONFIG_FILE: &str = "config.toml";
|
const CONFIG_FILE: &str = "config.toml";
|
||||||
|
|
||||||
pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> {
|
pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> {
|
||||||
ensure_directory_exists(&home)?;
|
ensure_side_directory_exists(&home)?;
|
||||||
|
|
||||||
let (key_path, config_path) = side_path(home.clone());
|
let (key_path, config_path) = side_path(home.clone());
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> {
|
|||||||
|
|
||||||
/// Ensures that the directory at side_dir exists, so we have a place
|
/// Ensures that the directory at side_dir exists, so we have a place
|
||||||
/// to store our key file and config file.
|
/// to store our key file and config file.
|
||||||
fn ensure_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> {
|
fn ensure_side_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> {
|
||||||
if side_dir.exists() {
|
if side_dir.exists() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user