nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: remove useless comparisons on null
[nit.git]
/
src
/
doc
/
doc_model.nit
diff --git
a/src/doc/doc_model.nit
b/src/doc/doc_model.nit
index
f13d69f
..
41386d2
100644
(file)
--- a/
src/doc/doc_model.nit
+++ b/
src/doc/doc_model.nit
@@
-190,12
+190,8
@@
redef class MGroup
redef fun tpl_namespace do
var tpl = new Template
redef fun tpl_namespace do
var tpl = new Template
- if mproject != null then
- tpl.add mproject.tpl_namespace
- else if parent != null then
- tpl.add parent.tpl_namespace
- end
- if mproject != null and mproject.root != self then
+ tpl.add mproject.tpl_namespace
+ if mproject.root != self then
tpl.add "::"
tpl.add tpl_link
end
tpl.add "::"
tpl.add tpl_link
end