Skip to content

Commit

Permalink
src/doc/commands: clean commands_docdown
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Jun 21, 2018
1 parent fc3a20c commit 82f4117
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/doc/commands/commands_docdown.nit
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# Doc down related queries
module commands_docdown

import commands::commands_html
import commands::commands_md
import commands_md
import markdown

# Retrieve the MDoc summary
#
Expand All @@ -25,7 +25,7 @@ class CmdSummary
super CmdComment

# Markdown processor used to parse the headlines
var markdown_processor: nullable MarkdownProcessor = null is optional, writable
var markdown_processor: MarkdownProcessor is writable

# Resulting summary
#
Expand All @@ -37,12 +37,6 @@ class CmdSummary
if not res isa CmdSuccess then return res
var mentity = self.mentity.as(not null)

var markdown_processor = self.markdown_processor
if markdown_processor == null then
markdown_processor = new MarkdownProcessor
self.markdown_processor = markdown_processor
end

var mdoc = self.mdoc
if mdoc == null then
mdoc = if fallback then mentity.mdoc_or_fallback else mentity.mdoc
Expand Down

0 comments on commit 82f4117

Please sign in to comment.