Skip to content

Commit 565e4d5

Browse files
committed
Misc PackBuilder cleanup
1 parent 23e2a53 commit 565e4d5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

LibGit2Sharp/PackBuilder.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace LibGit2Sharp
1111
public sealed class PackBuilder : IDisposable
1212
{
1313
private readonly PackBuilderSafeHandle packBuilderHandle;
14-
private readonly Repository repo;
1514

1615
/// <summary>
1716
/// Constructs a PackBuilder for a <see cref="Repository"/>.
@@ -20,8 +19,7 @@ internal PackBuilder(Repository repository)
2019
{
2120
Ensure.ArgumentNotNull(repository, "repository");
2221

23-
repo = repository;
24-
packBuilderHandle = Proxy.git_packbuilder_new(repo.Handle);
22+
packBuilderHandle = Proxy.git_packbuilder_new(repository.Handle);
2523
}
2624

2725
/// <summary>
@@ -151,6 +149,9 @@ public struct PackBuilderResults
151149
/// </summary>
152150
public sealed class PackBuilderOptions
153151
{
152+
private string path;
153+
private int nThreads;
154+
154155
/// <summary>
155156
/// Constructor
156157
/// </summary>
@@ -196,7 +197,7 @@ public int MaximumNumberOfThreads
196197
{
197198
if (value < 0)
198199
{
199-
throw new ArgumentException("Argument can not be negative", "MaximumNumberOfThreads");
200+
throw new ArgumentException("Argument can not be negative", "value");
200201
}
201202

202203
nThreads = value;
@@ -205,10 +206,6 @@ public int MaximumNumberOfThreads
205206
{
206207
return nThreads;
207208
}
208-
209209
}
210-
211-
private string path;
212-
private int nThreads;
213210
}
214211
}

0 commit comments

Comments
 (0)