question_mark

This commit is contained in:
Johann Hemmann 2024-01-19 16:29:07 +01:00
parent 6738edc259
commit 3cf1358eb8
4 changed files with 4 additions and 10 deletions

View file

@ -2081,9 +2081,7 @@ impl Function {
}
pub fn method_params(self, db: &dyn HirDatabase) -> Option<Vec<Param>> {
if self.self_param(db).is_none() {
return None;
}
self.self_param(db)?;
Some(self.params_without_self(db))
}