HomePhabricator

templater: simplify templatepaths() to avoid iterating a singleton list

Authored by martinvonz.

Description

templater: simplify templatepaths() to avoid iterating a singleton list

The function iterates over a hard-coded list of one element since
d844e220792a (templater: don't search randomly for templates - trust
util.datapath, 2014-09-28).

Differential Revision: https://phab.mercurial-scm.org/D8785