Skip to content

Commit c5d3198

Browse files
committed
Minor refactoring
1 parent 9b70728 commit c5d3198

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sqlmapapi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
from lib.utils.api import client
2020
from lib.utils.api import server
2121

22-
if __name__ == "__main__":
22+
def main():
2323
"""
2424
REST-JSON API main function
2525
"""
26+
2627
# Set default logging level to debug
2728
logger.setLevel(logging.DEBUG)
2829

@@ -45,3 +46,6 @@
4546
client(args.host, args.port)
4647
else:
4748
apiparser.print_help()
49+
50+
if __name__ == "__main__":
51+
main()

0 commit comments

Comments
 (0)