Skip to content

Commit 00f151d

Browse files
kmr-srbhubaidsk
andauthored
Style changes
Co-authored-by: Shaikh Ubaid <[email protected]>
1 parent 3e7cf05 commit 00f151d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7600,7 +7600,7 @@ we will have to use something else.
76007600
} else if (AST::is_a<AST::Dict_t>(*at->m_value)) {
76017601
AST::Dict_t* cdict = AST::down_cast<AST::Dict_t>(at->m_value);
76027602
visit_Dict(*cdict);
7603-
if (!tmp) {
7603+
if (tmp == nullptr) {
76047604
throw SemanticError("cannot call " + std::string(at->m_attr) + " on an empty dict" , loc);
76057605
}
76067606
ASR::expr_t* dict_expr = ASR::down_cast<ASR::expr_t>(tmp);

0 commit comments

Comments
 (0)