2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00
Files
InvenTree/InvenTree/stock
Matthias Mair 3f93151cca refactor: replace multiple == checks with in (#5737)
To check if a variable is equal to one of many values, combine the values into a tuple and check if the variable is contained `in` it instead of checking for equality against each of the values.
This is faster, less verbose, and more readable.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2023-10-18 07:30:16 +11:00
..
2023-10-11 16:34:38 +11:00
2022-06-02 01:37:39 +10:00
2023-03-29 10:35:43 +11:00
2023-02-17 13:33:36 +11:00