Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit eefd2fd

Browse files
Cleanup
1 parent 14b3399 commit eefd2fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ProjectWindowInterface : AssetPostprocessor
2626
private static ILogging Logger { get { return logger = logger ?? LogHelper.GetLogger<ProjectWindowInterface>(); } }
2727
private static CacheUpdateEvent lastRepositoryStatusChangedEvent;
2828
private static CacheUpdateEvent lastLocksChangedEvent;
29-
private static CacheUpdateEvent lastUserChangedEvent;
3029
private static IRepository Repository { get { return manager != null ? manager.Environment.Repository : null; } }
3130
private static IPlatform Platform { get { return manager != null ? manager.Platform : null; } }
3231
private static bool IsInitialized { get { return Repository != null; } }
@@ -203,8 +202,7 @@ private static bool IsObjectLocked(Object selected, bool isLockedByCurrentUser)
203202
NPath assetPath = AssetDatabase.GetAssetPath(selected.GetInstanceID()).ToNPath();
204203
NPath repositoryPath = manager.Environment.GetRepositoryPath(assetPath);
205204

206-
var isObjectLocked = locks.Any(x => repositoryPath == x.Path && (!isLockedByCurrentUser || x.Owner.Name == loggedInUser));
207-
return isObjectLocked;
205+
return locks.Any(x => repositoryPath == x.Path && (!isLockedByCurrentUser || x.Owner.Name == loggedInUser));
208206
}
209207

210208
private static ITask CreateUnlockObjectTask(Object selected, bool force)

0 commit comments

Comments
 (0)