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

preactjs / preact / 6032 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2019 06:21PM UTC
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

30 Oct 2019 06:17PM UTC coverage: 99.781% (+0.003%) from 99.778%
6032.1

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%)

912 of 914 relevant lines covered (99.78%)

770.57 hits per line

Source Files on job 6032.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1400
  • Travis Job 6032.1
  • 87b945bb on github
  • Prev Job for on master (#6025.1)
  • Next Job for on master (#6039.1)
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

© 2026 Coveralls, Inc