Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug in remove braces action.

  • Loading branch information...
commit c15615db826133587331ed70e9339f834a8cbebc 1 parent 3ba9118
@mkrueger mkrueger authored
View
2  ICSharpCode.NRefactory/CSharp/Refactoring/ContextAction/RemoveBraces.cs
@@ -51,7 +51,7 @@ static BlockStatement GetBlockStatement (RefactoringContext context)
var block = context.GetNode<BlockStatement> ();
if (block == null || block.LBraceToken.IsNull || block.RBraceToken.IsNull)
return null;
- if (block.Parent.Role == TypeDeclaration.MemberRole)
+ if (!(block.Parent is Statement))
return null;
if (block.Statements.Count () != 1)
return null;
Please sign in to comment.
Something went wrong with that request. Please try again.