Wifi: Slightly refactor LogcatLogTest

Refactor so that there is no issue with CheckReturnValue warnings.

(cherry picked from commit 07e65475b1b40f7f023c745ac6176cd7089b121d)

Bug: 73094025
Test: m javac-check RUN_ERROR_PRONE=true
Merged-In: I83df7baf22c4329d1a8e24c17b1b8d656953d201
Change-Id: I83df7baf22c4329d1a8e24c17b1b8d656953d201
1 file changed