Skip to content

Commit

Permalink
chore: cleanup conditional precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Apr 6, 2024
1 parent ca19f6b commit 9f72451
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public static function add_fields_to_child_type( array $fields, GF_Field $field,
// Bail early.
if (
! in_array( self::$type, $interfaces, true ) ||
'checkbox' !== $field->type &&
( ! empty( $field->inputs ) || in_array( $field->inputType, [ 'email', 'time', 'password' ], true ) )
(
'checkbox' !== $field->type &&
( ! empty( $field->inputs ) || in_array( $field->inputType, [ 'email', 'time', 'password' ], true ) )
)
) {
return $fields;
}
Expand Down

0 comments on commit 9f72451

Please sign in to comment.