Skip to content

Commit 6592f3a

Browse files
authored
fix: simplify return statement in Relation class (#36)
1 parent 736376d commit 6592f3a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Descriptors/Relations/Relation.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,7 @@ public function whenIncluded(null|bool $whenIncluded = null): static
109109
$this->whenIncluded = $whenIncluded;
110110
}
111111

112-
return $this->when(fn(
113-
Request $request,
114-
Model $model,
115-
string $attribute
116-
): bool => !$this->whenIncluded || Includes::include($request, $attribute));
112+
return $this;
117113
}
118114

119115
/**

0 commit comments

Comments
 (0)