Zac-HD/shed

Stop `shed --refactor` from removing comments in otherwise-pointless parens

Zac-HD opened this issue · 0 comments

See these commits; the problem is that it removes the whitespace (which includes comments) too. Should just be one new condition in remove_pointless_parens_around_call(); "if node contains comment node: return node without changes" which can be copied from remove_trailing_comma().