This is an archive of the discontinued Mercurial Phabricator instance.

templater: make templatepaths() return a single path, or None
ClosedPublic

Authored by martinvonz on Jul 22 2020, 1:24 AM.

Details

Summary

The function returns either a singleton list or an empty list, so it
makes more sense to return a value or None. The plural in the name
also doesn't make sense, but templatepath() is already taken, so I
renamed it to templatedir() instead.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage