YangModuleInfoTemplate has a wrong check for null, where it should
be checking for Optional.present. Fix that.
Change-Id: I95ccfd7a938b173cd0cc8aa6be997a2afe471056
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
3a2d30a4fd44905431546826ca9226015545ee08)
«FOR imp : m.imports»
«val name = imp.moduleName»
«val rev = imp.revision»
- «IF rev === null»
+ «IF !rev.present»
«val Set<Module> modules = ctx.modules»
«val TreeMap<Optional<Revision>, Module> sorted = new TreeMap()»
«FOR module : modules»