Slim down ConfigParser error system

This commit is contained in:
2025-05-29 23:01:03 -04:00
parent a1c47b06a1
commit 9ffd6d5cef
4 changed files with 19 additions and 35 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ func ShearRemoteFromClient(targetLocationIncomplete string, forceOffline bool) e
if !forceOffline && deviceID != "" { // ensure a device ID exists (online mode)
// create an SSH client; manualSync is false in case a device ID exists but SSH is not configured
sshClient, _, _, err := GetSSHClient(false)
sshClient, _, _, err := GetSSHClient()
if err != nil {
return errors.New("unable to connect to SSH client: " + err.Error())
}
@@ -60,7 +60,7 @@ func RenameRemoteFromClient(oldLocationIncomplete, newLocationIncomplete string,
}
if !forceOffline && len(deviceIDList) > 0 { // ensure a device ID exists (online mode)
// create an SSH client; manualSync is false in case a device ID exists but SSH is not configured
sshClient, _, _, err := GetSSHClient(false)
sshClient, _, _, err := GetSSHClient()
if err != nil {
return errors.New("unable to connect to SSH client: " + err.Error())
}
@@ -99,7 +99,7 @@ func AddFolderRemoteFromClient(targetLocationIncomplete string, forceOffline boo
}
if !forceOffline && len(deviceIDList) > 0 { // ensure a device ID exists (online mode)
// create an SSH client; manualSync is false in case a device ID exists but SSH is not configured
sshClient, _, _, err := GetSSHClient(false)
sshClient, _, _, err := GetSSHClient()
if err != nil {
return errors.New("unable to connect to SSH client: " + err.Error())
}