Skip to content

Commit

Permalink
removed an unnecessary line in Function.create
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sheinkman committed Jan 4, 2017
1 parent 3324f02 commit b9367b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sark/code/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def create(ea=UseCurrentAddress):
if Function.is_function(ea):
raise exceptions.SarkFunctionExists("function already exists")
else:
status = add_func(ea)
if not status:
if not add_func(ea):
raise exceptions.SarkAddFunctionFailed("Failed to add function")
return Function(ea)

Expand Down

0 comments on commit b9367b7

Please sign in to comment.