Skip to content

Commit

Permalink
Removed pointless check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vannevelj committed Jun 3, 2015
1 parent 7271640 commit aaff454
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,7 @@ private async Task<Solution> UseProperty(Document document, SyntaxNode root, Syn

var editor = await DocumentEditor.CreateAsync(document);
editor.InsertAfter(statement, newProperty);

if (variableDeclaration.Variables.Count == 1)
{
editor.RemoveNode(fieldStatement);
}
else
{
editor.RemoveNode(variableDeclarator);
}

editor.RemoveNode(variableDeclarator);
return editor.GetChangedDocument().Project.Solution;
}
}
Expand Down

0 comments on commit aaff454

Please sign in to comment.