chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -212,7 +212,7 @@ namespace Server.Misc
|
|||
try
|
||||
{
|
||||
// This isn't called often so we don't need to optimize
|
||||
using HttpClient hc = new HttpClient();
|
||||
using var hc = new HttpClient();
|
||||
hc.Timeout = TimeSpan.FromSeconds(1); // Only wait 1 second
|
||||
var ipAddress = hc.GetStringAsync(_ipifyUrl).Result;
|
||||
return IPAddress.Parse(ipAddress);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue