sugarsdk/linting/multireturns.py
def visit_functiondef(self, node):
        """
        Checks for presence of return statement at the end of a function
        "return" or "return None" are useless because None is the default
        return type if they are missing
        """
        if node.body and self.collect_returns(node) > 1:
            self.add_message("multiple-return-statements", node=node)

        Checks for presence of return statement at the end of a function
        "return" or "return None" are useless because None is the default
        return type if they are missing
        
Checks for presence of return statement at the end of a function
"return" or "return None" are useless because None is the default
return type if they are missing
Checks for presence of return statement at the end of a function " return " or " return None " are useless because None is the default return type if they are missing
def visit_functiondef(self, node):
        if node.body and self.collect_returns(node) > 1:
            self.add_message("multiple-return-statements", node=node)
def visit_functiondef ( self , node ) : if node . body and self . collect_returns ( node ) > 1 : self . add_message ( "multiple-return-statements" , node = node )
Checks for presence of return statement at the end of a function
"return" or "return None" are useless because None is the default
return type if they are missing
Checks for presence of return statement at the end of a function " return " or " return None " are useless because None is the default return type if they are missing
"""
        Checks for presence of return statement at the end of a function
        "return" or "return None" are useless because None is the default
        return type if they are missing
        """
self
node