]> git.lizzy.rs Git - go-anidb.git/commit
anidb: Add missing loop 'break's to EpisodeByEID
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 04:26:58 +0000 (01:26 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 04:26:58 +0000 (01:26 -0300)
commitd34be9cc97c284b49886b1e8e7bf43a64f6e0bdf
treec3cba503615743df2299dfca1adf0734520d54ce
parent69d97ec2b2927a6705f90708db0f7da4431a24dd
anidb: Add missing loop 'break's to EpisodeByEID

Without the breaks, it's would be possible to query for an Anime
with AID 0, a clear waste of time.

Also move the 'ok = false' assignment closer to where it's documented.
episodecache.go