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
71
71
72
72
using ( RemoteSafeHandle remoteHandle = Proxy . git_remote_lookup ( repository . Handle , remote . Name , true ) )
73
73
{
74
- var gitCallbacks = new GitRemoteCallbacks { version = 1 } ;
74
+ var gitCallbacks = new GitRemoteCallbacks { version = 1 } ;
75
75
76
76
if ( credentialsProvider != null )
77
77
{
@@ -113,7 +113,7 @@ static RemoteSafeHandle BuildRemoteSafeHandle(RepositorySafeHandle repoHandle, R
113
113
Debug . Assert ( remote != null && remote . Name != null ) ;
114
114
115
115
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 ) ) ;
117
117
118
118
return remoteHandle ;
119
119
}
@@ -124,7 +124,7 @@ static RemoteSafeHandle BuildRemoteSafeHandle(RepositorySafeHandle repoHandle, s
124
124
Debug . Assert ( url != null ) ;
125
125
126
126
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 ) ) ;
128
128
129
129
return remoteHandle ;
130
130
}
You can’t perform that action at this time.
0 commit comments