Skip to content

Fix bug, the max array can contains a nil values. #432

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

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

ryanfox1985
Copy link
Contributor


if options[:format_markdown]
max = maxs.map(&:max).compact.max

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this var only used for markdown?

@ryanfox1985
Copy link
Contributor Author

Yes this variable is only used to generate the markdown.

Besides, the max array can contains null values is for this reason that I append compact.

@ctran ctran merged commit 625e0d0 into ctran:develop Jan 31, 2017
@ctran ctran added this to the v2.7.2 milestone Jan 31, 2017
@ctran ctran added the bug label Jan 31, 2017
johncarney pushed a commit to johncarney/annotate_models that referenced this pull request Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants