Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9604d1

Browse files
committed
Add nil check for arguments in executestreaming
Added a guard statement to ensure 'arguments' is not nil before proceeding with the streaming process in executestreaming. Also changed 'useFileHandler' to true when initializing RsyncProcessStreaming.RsyncProcess.
1 parent365db8b commite9604d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎RsyncUI/Views/Quicktask/extensionQuickTaskView.swift‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extension QuicktaskView {
107107

108108
*/
109109
func executestreaming(config:SynchronizeConfiguration, dryrun:Bool){
110-
letarguments=ArgumentsSynchronize(config: config).argumentsSynchronize(dryRun: dryrun, forDisplay:false)??[]
110+
letarguments=ArgumentsSynchronize(config: config).argumentsSynchronize(dryRun: dryrun, forDisplay:false)
111111

112112
// Start progressview
113113
showprogressview=true
@@ -123,13 +123,14 @@ extension QuicktaskView {
123123
guardSharedReference.shared.norsync==falseelse{return}
124124
guard config.task!=SharedReference.shared.haltedelse{return}
125125
guardlet streamingHandlerselse{return}
126+
guardlet argumentselse{return}
126127

127128
// Use streaming process with readability handlers; do not use file handler
128129
letstreamingProcess=RsyncProcessStreaming.RsyncProcess(
129130
arguments: arguments,
130131
hiddenID: config.hiddenID,
131132
handlers: streamingHandlers,
132-
useFileHandler:false
133+
useFileHandler:true
133134
)
134135
do{
135136
try streamingProcess.executeProcess()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp