Skip to content

Commit 51312ad

Browse files
committed
got rid of the general o7
1 parent ba8a36b commit 51312ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

socketsecurity/core/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_supported_patterns(self) -> Dict:
177177
Gets supported file patterns from the Socket API.
178178
179179
Returns:
180-
Dictionary of supported file patterns
180+
Dictionary of supported file patterns with 'general' key removed
181181
"""
182182
response = self.sdk.report.supported()
183183
if not response:
@@ -186,6 +186,10 @@ def get_supported_patterns(self) -> Dict:
186186
from .utils import socket_globs
187187
return socket_globs
188188

189+
# Remove the 'general' key if it exists
190+
if 'general' in response:
191+
response.pop('general')
192+
189193
# The response is already in the format we need
190194
return response
191195

0 commit comments

Comments
 (0)