Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4939060

Browse files
Removing unused success variable in GitConfig
1 parent c977479 commit 4939060

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GitHub.Api/Git/GitConfig.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,16 @@ public string GetString(string key)
216216
public int GetInt(string key)
217217
{
218218
var value = this[key];
219-
var result = 0;
220-
var success = int.TryParse(value, out result);
219+
int result = 0;
220+
int.TryParse(value, out result);
221221
return result;
222222
}
223223

224224
public float GetFloat(string key)
225225
{
226226
var value = this[key];
227-
var result = 0F;
228-
var success = float.TryParse(value, out result);
227+
float result = 0F;
228+
float.TryParse(value, out result);
229229
return result;
230230
}
231231

0 commit comments

Comments
 (0)