util.cc: refactor read_file (#21295)
* mode read & open once * change return statement for better readibility * apply reviews * Update selfdrive/common/util.cc * fix Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>pull/21322/head
parent
fc569694e9
commit
190a845505
1 changed files with 11 additions and 13 deletions
Loading…
Reference in new issue