Skip to content

Commit

Permalink
refactor: remove useless condition (#6916)
Browse files Browse the repository at this point in the history
  • Loading branch information
thor-son authored Oct 8, 2023
1 parent 67386a1 commit 58a2e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,6 @@ public function valueOrNull($data, $index)
return;
}

return $data[$index] == '' ? null : $data[$index];
return $data[$index];
}
}

0 comments on commit 58a2e65

Please sign in to comment.