Simplify getSearchApiData() checks

Created on 12 October 2023, over 1 year ago
Updated 13 October 2023, over 1 year ago

Problem/Motivation

Simplify getSearchApiData checks.

Proposed resolution

  • Replace empty() check on a variable that defaults to an array with a more strict check.
  • Simplify if/else with ternary.
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States markdorison

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024