8000 Remove unneeded ConfigGetter<T> delegate · rlazev/libgit2sharp@f0d7a61 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0d7a61

Browse files
dahlbyknulltoken
authored andcommitted
Remove unneeded ConfigGetter<T> delegate
1 parent 6662ea5 commit f0d7a61

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

LibGit2Sharp/Configuration.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ private ConfigurationSafeHandle RetrieveConfigurationHandle(ConfigurationLevel l
372372
return h;
373373
}
374374

375-
private delegate T ConfigGetter<T>(ConfigurationSafeHandle handle, string name);
376-
377-
private static Func<string, object, ConfigurationSafeHandle, object> GetRetriever<T>(ConfigGetter<T> getter)
375+
private static Func<string, object, ConfigurationSafeHandle, object> GetRetriever<T>(Func<ConfigurationSafeHandle, string, T> getter)
378376
{
379377
return (key, defaultValue, handle) =>
380378
{

0 commit comments

Comments
 (0)
0