Remove duplicate comment

This commit is contained in:
Edwin Cheng 2020-02-26 20:55:11 +08:00
parent ffdc740446
commit 871dc2bd3c

View File

@ -345,7 +345,6 @@ pub fn original_range(db: &impl HirDatabase, node: InFile<&SyntaxNode>) -> FileR
return FileRange { file_id: original_file, range: range.value };
}
// Fail to mapping up more, return the original file range instead
if range.file_id != elem.file_id {
if let Some(root) = db.parse_or_expand(range.file_id) {
elem = range.with_value(find_covering_element(&root, range.value));