Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfab508

Browse files
author
J Wyman
committed
minor beautification
1 parent 342df4a commit dfab508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LibGit2Sharp/Network.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public virtual IEnumerable<DirectReference> ListReferences(Remote remote, Creden
7171

7272
using (RemoteSafeHandle remoteHandle = Proxy.git_remote_lookup(repository.Handle, remote.Name, true))
7373
{
74-
var gitCallbacks = new GitRemoteCallbacks {version = 1};
74+
var gitCallbacks = new GitRemoteCallbacks { version = 1 };
7575

7676
if (credentialsProvider != null)
7777
{
@@ -113,7 +113,7 @@ static RemoteSafeHandle BuildRemoteSafeHandle(RepositorySafeHandle repoHandle, R
113113
Debug.Assert(remote != null && remote.Name != null);
114114

115115
RemoteSafeHandle remoteHandle = Proxy.git_remote_lookup(repoHandle, remote.Name, true);
116-
Debug.Assert(remoteHandle != null && !remoteHandle.IsClosed && !remoteHandle.IsInvalid);
116+
Debug.Assert(remoteHandle != null && !(remoteHandle.IsClosed || remoteHandle.IsInvalid));
117117

118118
return remoteHandle;
119119
}
@@ -124,7 +124,7 @@ static RemoteSafeHandle BuildRemoteSafeHandle(RepositorySafeHandle repoHandle, s
124124
Debug.Assert(url != null);
125125

126126
RemoteSafeHandle remoteHandle = Proxy.git_remote_create_anonymous(repoHandle, url);
127-
Debug.Assert(remoteHandle != null && !remoteHandle.IsClosed && !remoteHandle.IsInvalid);
127+
Debug.Assert(remoteHandle != null && !(remoteHandle.IsClosed || remoteHandle.IsInvalid));
128128

129129
return remoteHandle;
130130
}

0 commit comments

Comments
 (0)