Skip to content

Commit adedb4b

Browse files
committed
Tidy code
1 parent 16289eb commit adedb4b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

LibGit2Sharp/Network.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public virtual IEnumerable<Reference> ListReferences(Remote remote, ListRemoteOp
7979
return ListReferencesInternal(remote.Url, options);
8080
}
8181

82-
8382
/// <summary>
8483
/// List references in a <see cref="Remote"/> repository.
8584
/// <para>
@@ -191,9 +190,9 @@ public virtual IEnumerable<Reference> ListReferences(string url)
191190
{
192191
Ensure.ArgumentNotNull(url, "url");
193192

194-
var options = new ListRemoteOptions()
193+
var options = new ListRemoteOptions
195194
{
196-
ProxyOptions = new ProxyOptions()
195+
ProxyOptions = new ProxyOptions()
197196
};
198197

199198
return ListReferencesInternal(url, options);

LibGit2Sharp/RemoteCallbacks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ private int GitCredentialHandler(
299299

300300
if (credTypes.HasFlag(GitCredentialType.SshKey))
301301
{
302-
types |= SupportedCredentialTypes.SShKey;
302+
types |= SupportedCredentialTypes.SshKey;
303303
}
304304

305305
if (credTypes.HasFlag(GitCredentialType.SshMemory))
306306
{
307-
types |= SupportedCredentialTypes.SSMemory;
307+
types |= SupportedCredentialTypes.SshMemory;
308308
}
309309

310310
ptr = IntPtr.Zero;

LibGit2Sharp/SupportedCredentialTypes.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ public enum SupportedCredentialTypes
2222
/// <summary>
2323
/// SSH key credentials sourced from files
2424
/// </summary>
25-
SShKey = (1 << 2),
25+
SshKey = (1 << 2),
2626

2727
/// <summary>
28-
/// SSH key credentials source from in memory keys
28+
/// SSH key credentials sourced from in-memory keys
2929
/// </summary>
30-
SSMemory = (1 << 3),
30+
SshMemory = (1 << 3),
3131
}
3232
}

0 commit comments

Comments
 (0)