Cleanup _CheckFormat presubmit check
Cleanup _CheckFormat presubmit check

The check was incorrectly excluding non-js files. Additionally, it can
use the _ExecuteSubProcess helper to remove duplicate logic for running
the sub-process.

Change-Id: I6435f91e1cee61b52581f6d76da3f0be3c8e9ee1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2087768
Commit-Queue: Tim van der Lippe <dba8716ee7f8d16236046f74d2167cb94410f6ed@chromium.org>
Reviewed-by: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>

ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend