We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d88360 commit 0c503d3Copy full SHA for 0c503d3
src/ViewModels/LFSLocks.cs
@@ -77,15 +77,18 @@ public async Task UnlockAllMyLocksAsync()
77
if (_isLoading || string.IsNullOrEmpty(_userName))
78
return;
79
80
- IsLoading = true;
81
-
82
var locks = new List<string>();
83
foreach (var lfsLock in _cachedLocks)
84
{
85
if (lfsLock.Owner.Name.Equals(_userName, StringComparison.Ordinal))
86
locks.Add(lfsLock.Path);
87
}
88
+ if (locks.Count == 0)
+ return;
89
+
90
+ IsLoading = true;
91
92
var log = _repo.CreateLog("Unlock LFS Locks");
93
var succ = await new Commands.LFS(_repo.FullPath).Use(log).UnlockMultipleAsync(_remote, locks, true);
94
if (succ)
0 commit comments