Closed coryrylan closed 2 years ago
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
On certain storybook stories where the code snippet is a single line the story formatter will throw an exception.
This will prevent the exception and check if its a single or multi line code snippet before attempting to format or remove the wrapper function.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
On certain storybook stories where the code snippet is a single line the story formatter will throw an exception.
What is the new behavior?
This will prevent the exception and check if its a single or multi line code snippet before attempting to format or remove the wrapper function.
Does this PR introduce a breaking change?
Other information