Skip to content

Commit fd378f6

Browse files
committed
Removing unnecessary check
1 parent 2bf95cc commit fd378f6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

nxc/protocols/smb.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,6 @@ def shares(self):
905905

906906

907907
def dir(self):
908-
# Seems defined by default, do we have to keep this check ?
909-
if not self.args.share:
910-
self.logger.error("You must define --share option")
911-
return
912-
913908
search_path = ntpath.join(self.args.dir, "*")
914909
try:
915910
contents = self.conn.listPath(self.args.share, search_path)

0 commit comments

Comments
 (0)