We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8a36b commit 51312adCopy full SHA for 51312ad
socketsecurity/core/__init__.py
@@ -177,7 +177,7 @@ def get_supported_patterns(self) -> Dict:
177
Gets supported file patterns from the Socket API.
178
179
Returns:
180
- Dictionary of supported file patterns
+ Dictionary of supported file patterns with 'general' key removed
181
"""
182
response = self.sdk.report.supported()
183
if not response:
@@ -186,6 +186,10 @@ def get_supported_patterns(self) -> Dict:
186
from .utils import socket_globs
187
return socket_globs
188
189
+ # Remove the 'general' key if it exists
190
+ if 'general' in response:
191
+ response.pop('general')
192
+
193
# The response is already in the format we need
194
return response
195
0 commit comments