Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit bead57e

Browse files
committed
fix(command): Remove unneeded conditions
1 parent 32dbdca commit bead57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/CreateUsersCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private static function parseUsers(string $filename): array
151151
$roles = $row[$rolesIndex];
152152
$group = false !== $groupIndex ? $row[$groupIndex] : null;
153153

154-
if (!\is_string($email) || !\is_string($name) || !\is_string($roles) || (!\is_string($group) && null !== $group)) {
154+
if (!\is_string($email) || !\is_string($name) || !\is_string($roles) || !\is_string($group)) {
155155
throw new \RuntimeException("Invalid row in $filename.");
156156
}
157157

0 commit comments

Comments
 (0)