From ddba3459bf2df6d22780da00ec86edb711b83263 Mon Sep 17 00:00:00 2001 From: verhoek Date: Mon, 30 Apr 2018 20:50:49 +0200 Subject: [PATCH] Removed extra local var. --- Duplicati/Library/Backend/GoogleServices/GoogleDrive.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Duplicati/Library/Backend/GoogleServices/GoogleDrive.cs b/Duplicati/Library/Backend/GoogleServices/GoogleDrive.cs index fe846c529..4b36761bc 100644 --- a/Duplicati/Library/Backend/GoogleServices/GoogleDrive.cs +++ b/Duplicati/Library/Backend/GoogleServices/GoogleDrive.cs @@ -110,9 +110,9 @@ namespace Duplicati.Library.Backend.GoogleDrive if (entries != null) return entries; - var list = ListFolder(CurrentFolderId, false, remotename).ToArray(); + entries = ListFolder(CurrentFolderId, false, remotename).ToArray(); - if (list == null || list.Length == 0) + if (entries == null || entries.Length == 0) { if (throwMissingException) throw new FileMissingException(); @@ -120,7 +120,7 @@ namespace Duplicati.Library.Backend.GoogleDrive return null; } - return m_filecache[remotename] = list; + return m_filecache[remotename] = entries; } private static string EscapeTitleEntries(string title)