aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Weather/WeatherClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Weather/WeatherClient.cs')
-rw-r--r--MediaBrowser.Controller/Weather/WeatherClient.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Weather/WeatherClient.cs b/MediaBrowser.Controller/Weather/WeatherClient.cs
index a16244820..c6692b87b 100644
--- a/MediaBrowser.Controller/Weather/WeatherClient.cs
+++ b/MediaBrowser.Controller/Weather/WeatherClient.cs
@@ -21,7 +21,7 @@ namespace MediaBrowser.Controller.Weather
public WeatherClient()
{
- WebRequestHandler handler = new WebRequestHandler();
+ var handler = new WebRequestHandler { };
handler.AutomaticDecompression = DecompressionMethods.Deflate;
handler.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Revalidate);
@@ -56,7 +56,7 @@ namespace MediaBrowser.Controller.Weather
/// </summary>
private WeatherInfo GetWeatherInfo(WeatherData data)
{
- WeatherInfo info = new WeatherInfo();
+ var info = new WeatherInfo();
if (data.current_condition != null)
{