mirror of https://github.com/astral-sh/ruff
Remove needless return (#597)
This commit is contained in:
parent
62c126f70e
commit
f27163d2c7
|
|
@ -4,6 +4,6 @@ use libcst_native::Module;
|
|||
pub fn match_module(module_text: &str) -> Result<Module> {
|
||||
match libcst_native::parse_module(module_text, None) {
|
||||
Ok(module) => Ok(module),
|
||||
Err(_) => return Err(anyhow::anyhow!("Failed to extract CST from source.")),
|
||||
Err(_) => Err(anyhow::anyhow!("Failed to extract CST from source.")),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue