aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/traits.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-03 03:30:52 +0300
committerBonfaceKilz2022-02-08 10:12:27 +0300
commit5ca7e792083f25b487890f9f38ae57bd3f9c29c4 (patch)
treea2058667d892c7d0acc34e77d9b2250d9e180cb2 /gn3/db/traits.py
parent834821b086d6a963b60bddb4bf41aee94af5f0db (diff)
downloadgenenetwork3-5ca7e792083f25b487890f9f38ae57bd3f9c29c4.tar.gz
Remove unnecessary computation
In Python3 when slicing, seq[:min(some_val, len(seq))] == seq[:some_val] because Python3 will just return a copy of the entire sequence if `some_val` happens to be larger/greater than the length of the sequence. This commit removes the unnecessary call to `min()`
Diffstat (limited to 'gn3/db/traits.py')
0 files changed, 0 insertions, 0 deletions