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

inventree / InvenTree / 6553359905
90%

Build:
DEFAULT BRANCH: master
Ran 17 Oct 2023 10:24PM UTC
Jobs 1
Files 789
Run time 21s
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

17 Oct 2023 10:06PM UTC coverage: 88.688% (+0.2%) from 88.53%
6553359905

push

github

web-flow
refactor: refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#5735)

The use of `else` or `elif` becomes redundant and can be dropped if the last statement under the leading `if` / `elif` block is a `return` statement.
In the case of an `elif` after `return`, it can be written as a separate `if` block.
For `else` blocks after `return`, the statements can be shifted out of `else`. Please refer to the examples below for reference.

Refactoring the code this way can improve code-readability and make it easier to maintain.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

67 of 67 new or added lines in 23 files covered. (100.0%)

27832 of 31382 relevant lines covered (88.69%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6553359905.1 17 Oct 2023 10:24PM UTC 0
88.69
GitHub Action Run
Source Files on build 6553359905
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6553359905
  • eb79bd17 on github
  • Prev Build on master (#6552488284)
  • Next Build on master (#6555836180)
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