build_checker: return pointless when no affected files

This makes behavior more obvious, and it supports Chris's use case for
toolchain. The build_target recipe is now skipping running the pointless
build checker when there are no Gerrit changes, so this maintains
present behavior for postsubmit.

BUG=chromium:1041976
TEST=unit tests

Change-Id: Id427cd8ce30bf94980b444ffe4f2de76eaf23c45
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/go/+/2012993
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
Tested-by: Sean Abraham <seanabraham@chromium.org>
Commit-Queue: Chris McDonald <cjmcdonald@chromium.org>
2 files changed