]> source.dussan.org Git - gitea.git/commit
archiver: tests: simplify a bit further
authorKyle Evans <kevans@FreeBSD.org>
Wed, 6 May 2020 00:13:57 +0000 (19:13 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 6 May 2020 00:13:57 +0000 (19:13 -0500)
commit6b25f4385337fdb9dbf08cbfc28a52e6fb9b3742
tree7e60d4e147da97fa133e14098487f9ca63ca7b02
parentc134aef340376f9a51fe1cf07f185ad407dc0dd4
archiver: tests: simplify a bit further

We don't need to risk failure and use time.ParseDuration to get 2 *
time.Second.

else if isn't really necessary if the conditions are simple enough and lead
to the same result.
services/archiver/archiver_test.go