File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments