Skip to content

Commit c472430

Browse files
committed
Clean up argument checks
1 parent b681246 commit c472430

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/space/whitememory/pythoninlayparams/PythonInlayHintsProvider.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class PythonInlayHintsProvider : InlayParameterHintsProvider {
2828

2929
// Don't show hints if there's no arguments
3030
// Or the only argument is unpacking (*list, **dict)
31-
element.arguments.let {
32-
if (it.isEmpty() || (it.size == 1 && it[0] is PyStarArgument)) return inlayInfos
31+
if (element.arguments.isEmpty() || (element.arguments.size == 1 && element.arguments[0] is PyStarArgument)) {
32+
return inlayInfos
3333
}
3434

3535
// Try to resolve the object that made this call

0 commit comments

Comments
 (0)