Remove needless return (#597)

This commit is contained in:
Harutaka Kawamura 2022-11-06 03:11:26 +09:00 committed by GitHub
parent 62c126f70e
commit f27163d2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.")),
}
}