Skip to content

Commit e9db9e8

Browse files
committed
Misc PackBuilder cleanup
1 parent a579a09 commit e9db9e8

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>
@@ -143,6 +141,9 @@ public struct PackBuilderResults
143141
/// </summary>
144142
public sealed class PackBuilderOptions
145143
{
144+
private string path;
145+
private int nThreads;
146+
146147
/// <summary>
147148
/// Constructor
148149
/// </summary>
@@ -188,7 +189,7 @@ public int MaximumNumberOfThreads
188189
{
189190
if (value < 0)
190191
{
191-
throw new ArgumentException("Argument can not be negative", "MaximumNumberOfThreads");
192+
throw new ArgumentException("Argument can not be negative", "value");
192193
}
193194

194195
nThreads = value;
@@ -197,10 +198,6 @@ public int MaximumNumberOfThreads
197198
{
198199
return nThreads;
199200
}
200-
201201
}
202-
203-
private string path;
204-
private int nThreads;
205202
}
206203
}

0 commit comments

Comments
 (0)