activeadmin / arbre

An Object Oriented DOM Tree in Ruby
MIT License
756 stars 74 forks source link

Remove unnecessary `.compact` call #562

Closed tagliala closed 6 months ago

tagliala commented 6 months ago

The .compact method is used to remove nil elements from an array. However, in this context, it is unnecessary because the .map operation is already creating an array of strings, and there's no nil values that could be removed

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8f51900) 94.34% compared to head (4835955) 94.34%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #562 +/- ## ======================================= Coverage 94.34% 94.34% ======================================= Files 17 17 Lines 460 460 ======================================= Hits 434 434 Misses 26 26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.