Skip to content

Commit

Permalink
Remove duplicated symbol resolve check.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Aug 4, 2024
1 parent e16d996 commit 0ec9062
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sway-core/src/semantic_analysis/namespace/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,10 +982,6 @@ impl Root {
symbol: &Ident,
module: &Module,
) -> Result<ResolvedDeclaration, ErrorEmitted> {
// Check locally declared items. Any name clash with imports will have already been reported as an error.
if let Some(decl) = module.current_items().symbols.get(symbol) {
return Ok(decl.clone());
}
// Check locally declared items. Any name clash with imports will have already been reported as an error.
if let Some(decl) = module.current_items().symbols.get(symbol) {
return Ok(decl.clone());
Expand Down

0 comments on commit 0ec9062

Please sign in to comment.