We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff8f463 + 732a557 commit 14961b0Copy full SHA for 14961b0
1 file changed
codeflash/languages/java/instrumentation.py
@@ -259,11 +259,11 @@ def _infer_array_cast_type(line: str) -> str | None:
259
260
# Look for primitive array type in the line (usually the first/expected argument)
261
match = _PRIMITIVE_ARRAY_PATTERN.search(line)
262
- if match:
263
- primitive_type = match.group(1)
264
- return f"{primitive_type}[]"
+ if not match:
+ return None
265
266
- return None
+ primitive_type = match.group(1)
+ return f"{primitive_type}[]"
267
268
269
def _get_qualified_name(func: Any) -> str:
0 commit comments