Skip to content

Commit 6e5595e

Browse files
authored
Merge pull request #1816 from Shaikh-Ubaid/remove_unneeded_variable
Minor: Remove unneeded variable
2 parents 8315bc5 + e6c62e5 commit 6e5595e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,14 +894,13 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
894894
}
895895

896896
int64_t find_argument_position_from_name(ASR::StructType_t* orig_struct, std::string arg_name) {
897-
int64_t arg_position = -1;
898897
for( size_t i = 0; i < orig_struct->n_members; i++ ) {
899898
std::string original_arg_name = std::string(orig_struct->m_members[i]);
900899
if( original_arg_name == arg_name ) {
901900
return i;
902901
}
903902
}
904-
return arg_position;
903+
return -1;
905904
}
906905

907906
void visit_expr_list(AST::expr_t** pos_args, size_t n_pos_args,

0 commit comments

Comments
 (0)