StackGuardian / tirith

StackGuardian Policy Framework
Apache License 2.0
114 stars 36 forks source link

Simplify Type Checking in sort_collections Function #185

Open AkashS0510 opened 17 hours ago

AkashS0510 commented 17 hours ago

Issue: The current implementation of the sort_collections function in the utils.py manually checks for multiple data types (str, float, int, bool) using individual isinstance checks. This can be simplified by grouping these checks into a single isinstance statement, improving readability and reducing redundancy.

Task:

Update the sort_collections function in the utils.py to use a single isinstance check for primitive types.

gabrilito1 commented 10 hours ago

done