gitweb: optimize $lastactivity_file code
commit32151cf7e2beac198f4aaced003a7172654f6a22
authorKyle J. McKay <mackyle@gmail.com>
Sun, 19 Apr 2015 17:11:28 +0000 (19 10:11 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 19 Apr 2015 17:11:28 +0000 (19 10:11 -0700)
tree26eb5d765fb1729df25ed2652cc2ca95fcffc4fc
parent309a6dcd5e72bedc8f1b5b5d1847e777f539dd00
gitweb: optimize $lastactivity_file code

Don't waste time checking to see if the file is readable before
trying to open it for reading, just check the result of an open-
for-reading call.

Also ignore a failure of close since we validate the line we
read the close exit status is irrelevant.

These changes also have the side-effect of eliminating use
of 'last' that would have incorrectly exited the function
if it ever triggered.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl