Skip to content
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

fix(isEmpty): treat golang zero values as falsy #33

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

flisky
Copy link

@flisky flisky commented Dec 18, 2019

Accroding to other mustache implementations like mustache.js#False Values or Empty Lists, I proposal we should treat falsy values as the host language(golang) does.

handlebars-lang/handlebars.js#731 (comment)

@codecov-io
Copy link

Codecov Report

Merging #33 into master will increase coverage by 0.56%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   84.75%   85.31%   +0.56%     
==========================================
  Files           2        2              
  Lines         505      504       -1     
==========================================
+ Hits          428      430       +2     
+ Misses         53       50       -3     
  Partials       24       24
Impacted Files Coverage Δ
mustache.go 86.26% <100%> (+0.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73b1f39...6328bef. Read the comment docs.

@cbroglie
Copy link
Owner

Makes sense to me, thanks @flisky

@cbroglie cbroglie merged commit c219793 into cbroglie:master Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants