• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

preactjs / preact / 6032
100%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2019 06:21PM UTC
Jobs 1
Files 19
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6032

push

travis-ci

web-flow
Simplify ternary expressions (-7 B) (#2049)

After working on #2048, I realized we had some gnarly ternary expressions that would a little hard to decipher. I played around with rewriting some into normal if statements hoping terser would properly minify them for us and it turns it did even better and saved us some bytes! A before and after comparison is provided in the comments of the PR for those curious.

Summary:
f6b39b5 Use if statement in setStyle for readability (+0 B)
8ff18fc Simplify className conditionals (-2 B)
f04da34 Simplify setState/_nextState condintional (-2 B)
f638098 Simplify update condition (-1 B)
448dbe7 Simplify nextState assignment in gDSFP handling (-2 B)

845 of 855 branches covered (98.83%)

18 of 18 new or added lines in 3 files covered. (100.0%)

912 of 914 relevant lines covered (99.78%)

770.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6032.1 30 Oct 2019 06:21PM UTC 0
99.78
Travis Job 6032.1
Source Files on build 6032
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6032
  • 87b945bb on github
  • Prev Build on master (#6025)
  • Next Build on master (#6039)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc