Skip to content
Prev Previous commit
Next Next commit
Type fixes.
  • Loading branch information
millianlmx committed Aug 27, 2024
commit e5732ee87398fbe49205915c537a2d518cdaa5db
2 changes: 1 addition & 1 deletion detect_secrets/filters/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def is_feature_enabled() -> bool:

def is_feature_ready(args: Namespace) -> bool:
try:
return type(args.huggingface_model and args.threshold and args.huggingface_token) == bool
return type(args.huggingface_model and args.threshold and args.huggingface_token) is bool
except Exception:
return False

Expand Down