read-cache.c: don't guard calls to progress.c API
commitb7b793d1e7b1ec8104eef2da450ff47c02c9c365
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 7 Jun 2021 14:43:22 +0000 (7 16:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Jun 2021 01:09:13 +0000 (8 10:09 +0900)
tree518d4b576e7422004ae438c8005a534a8b1881f3
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
read-cache.c: don't guard calls to progress.c API

Don't guard the calls to the progress.c API with "if (progress)". The
API itself will check this. This doesn't change any behavior, but
makes this code consistent with the rest of the codebase.

See ae9af12287b (status: show progress bar if refreshing the index
takes too long, 2018-09-15) for the commit that added the pattern
we're changing here.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c