diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2018-11-22 08:21:38 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2018-11-22 08:21:38 +0300 |
commit | 0143a848f54aa143cd77e7c848608c1cdee0b61e (patch) | |
tree | f48f0b2c9178e9ed5eeb65c65311a84c62286700 /Duplicati/Library/Backend/SSHv2 | |
parent | de9750caba4fc35c6fdbc8636d924de1be302a40 (diff) |
Remove unnecessary local variable.
Diffstat (limited to 'Duplicati/Library/Backend/SSHv2')
-rw-r--r-- | Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs | 3 |
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."); } |