Removing declaration expressions

This commit is contained in:
Pranav K 2014-10-01 14:45:04 -07:00
parent 0c6dd83ac2
commit 7574378d37
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ namespace Microsoft.AspNet.Hosting
using (var reader = new JsonTextReader(new StreamReader(stream)))
{
var project = JObject.Load(reader);
if (project.TryGetValue("webroot", out var token))
JToken token;
if (project.TryGetValue("webroot", out token))
{
webroot = Path.Combine(applicationBasePath, token.ToString());
}