More code cleanups

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-11 15:37:14 -04:00
parent 670a53258e
commit f1e668bad8
58 changed files with 296 additions and 298 deletions

View File

@@ -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)
{