Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2018-11-22 08:21:38 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2018-11-22 08:21:38 +0300
commit0143a848f54aa143cd77e7c848608c1cdee0b61e (patch)
treef48f0b2c9178e9ed5eeb65c65311a84c62286700 /Duplicati/Library/Backend/SSHv2
parentde9750caba4fc35c6fdbc8636d924de1be302a40 (diff)
Remove unnecessary local variable.
Diffstat (limited to 'Duplicati/Library/Backend/SSHv2')
-rw-r--r--Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
index 177377033..30bc18549 100644
--- a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
+++ b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
@@ -124,8 +124,7 @@ namespace Duplicati.Library.Backend
partialPath += $"/{part}";
if (this.m_con.Exists(partialPath))
{
- Renci.SshNet.Sftp.SftpFileAttributes attributes = this.m_con.GetAttributes(partialPath);
- if (!attributes.IsDirectory)
+ if (!this.m_con.GetAttributes(partialPath).IsDirectory)
{
throw new ArgumentException($"The path {partialPath} already exists and is not a directory.");
}