remove 2 redundant comments and one that lies (#4866)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -186,17 +186,14 @@ impl Config {
|
||||
})
|
||||
}
|
||||
|
||||
/// Check if this config already exists
|
||||
pub fn exists(&self) -> bool {
|
||||
self.config_path.exists()
|
||||
}
|
||||
|
||||
/// Check if this config already exists
|
||||
pub fn clear(&self) -> Result<(), ConfigError> {
|
||||
Ok(std::fs::remove_file(&self.config_path)?)
|
||||
}
|
||||
|
||||
/// Get the path to the configuration file
|
||||
pub fn path(&self) -> String {
|
||||
self.config_path.to_string_lossy().to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user