Skip to content

Commit ef5c65c

Browse files
committed
No unecessary return values
1 parent 30806ee commit ef5c65c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ def on_admin_login(self, context, connection):
5858

5959
if self.command_to_run is None:
6060
self.logger.fail("You need to specify a CMD to run")
61-
return 1
61+
return
6262

6363
if self.run_task_as is None:
6464
self.logger.fail("You need to specify a USER to run the command as")
65-
return 1
65+
return
6666

6767
if self.binary_to_upload:
6868
if not os.path.isfile(self.binary_to_upload):
6969
self.logger.fail(f"Cannot find {self.binary_to_upload}")
70-
return 1
70+
return
7171
else:
7272
self.logger.display(f"Uploading {self.binary_to_upload}")
7373
binary_file_location = self.tmp_path if self.output_file_location is None else self.output_file_location
@@ -78,7 +78,7 @@ def on_admin_login(self, context, connection):
7878
self.logger.success(f"Binary {self.binary_to_upload_name} successfully uploaded in {binary_file_location}{self.binary_to_upload_name}")
7979
except Exception as e:
8080
self.logger.fail(f"Error writing file to share {binary_file_location}: {e}")
81-
return 1
81+
return
8282

8383
self.logger.display("Connecting to the remote Service control endpoint")
8484
try:

0 commit comments

Comments
 (0)