We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 626b4f7 commit 95f556aCopy full SHA for 95f556a
crates/typos-cli/src/config.rs
@@ -60,12 +60,12 @@ impl Config {
60
if path.file_name().unwrap() == PYPROJECT_TOML {
61
let config = toml::from_str::<PyprojectTomlConfig>(&s)?;
62
63
- if config.tool.typos.is_none() {
+ if let Some(typos) = config.tool.typos {
64
+ Ok(Some(typos))
65
+ } else {
66
log::debug!("No `tool.typos` section found in `{PYPROJECT_TOML}`, skipping");
67
68
Ok(None)
- } else {
- Ok(config.tool.typos)
69
}
70
} else {
71
Self::from_toml(&s).map(Some)
0 commit comments