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

Commit 59c70ca

Browse files
Cleanup
1 parent 14b3399 commit 59c70ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ private static bool IsObjectLocked(Object selected, bool isLockedByCurrentUser)
203203
NPath assetPath = AssetDatabase.GetAssetPath(selected.GetInstanceID()).ToNPath();
204204
NPath repositoryPath = manager.Environment.GetRepositoryPath(assetPath);
205205

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

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

0 commit comments

Comments
 (0)