-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not walk unnecessary keys in truncate titles #2487
Conversation
@@ -255,6 +255,11 @@ export const truncateTitles = ( | |||
const specCopy: Record<string, unknown> = {} | |||
|
|||
for (const [key, value] of Object.entries(spec)) { | |||
if (['data', 'color', 'strokeDash', 'shape', 'detail'].includes(key)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] There should be no titles in any of these keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Code Climate has analyzed commit 110b176 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.9% (0.0% change). View more on Code Climate. |
Small optimisation that I noticed whilst working on #2486.