D6123: similar: add condition to avoid Zerodivisonerror in function _score() (issue6099)

akshjain.jain74 (Akshit Jain) phabricator at mercurial-scm.org
Fri Mar 15 10:21:17 EDT 2019


akshjain.jain74 added inline comments.

INLINE COMMENTS

> pulkit wrote in similar.py:68
> no need for this else. you can `return 0` without else.

yes actually 😅  i did'nt noticed that

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6123

To: akshjain.jain74, durin42, #hg-reviewers
Cc: av6, pulkit, mercurial-devel


More information about the Mercurial-devel mailing list