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

zulip / zulip-mobile / 6681
47%

Build:
DEFAULT BRANCH: master
Ran 21 Aug 2018 11:43PM UTC
Jobs 1
Files 361
Run time 1min
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
6681

push

travis-ci

gnprice
api: Drop only `undefined` params, not `null`.

This use of `!= null` is really aimed at `undefined`; switch to the
more transparent `!==`.

We could of course make the condition equally transparent, and keep
the `!= null` semantics.  Should we exclude `null`?

Flow believes we never pass a `null` value here anyway.  (But also it
thinks that about `undefined`, which isn't true; it's been misled.)

If we do, though, then taking it out is probably actually a bug --
`null` is a perfectly good JSON-serializable value, which Python
deserializes back as `None`.  It definitely appears in the API at
least in some return values, and there may be routes that give `None`
a particular meaning for some parameter but will give an error if the
parameter is simply not there.

And in general we prefer to write code that acts as if the type
signatures are correct.  So, keep this exception to that rule down to
the one case we know can happen, and with a comment explaining why.

1008 of 2079 branches covered (48.48%)

Branch coverage included in aggregate %.

1923 of 3737 relevant lines covered (51.46%)

34.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6681.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 21 Aug 2018 11:43PM UTC 0
50.4
Travis Job 6681.1
Source Files on build 6681
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6681
  • 94234c32 on github
  • Prev Build on master (#3339)
  • Next Build on master (#6682)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc