p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
125 stars 8 forks source link

"Toggle braces" not available if function returns `null` #78

Open OliverJAsh opened 10 months ago

OliverJAsh commented 10 months ago
✅
const x = () => {
  return 1;
};

// ❌
const y = () => {
  return null;
};

https://github.com/p42ai/js-assistant/assets/921609/6c19f47f-212a-42b8-b411-d09de905942b