summary refs log tree commit diff stats
path: root/rod/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'rod/main.nim')
-rwxr-xr-xrod/main.nim6
1 files changed, 2 insertions, 4 deletions
diff --git a/rod/main.nim b/rod/main.nim
index d386a10aa..6cdd026b5 100755
--- a/rod/main.nim
+++ b/rod/main.nim
@@ -170,15 +170,13 @@ proc exSymbols(n: PNode) =
 
 proc CommandExportSymbols(filename: string) = 
   # now unused!
-  var module: PNode
-  module = parseFile(addFileExt(filename, NimExt))
+  var module = parseFile(addFileExt(filename, NimExt))
   if module != nil: 
     exSymbols(module)
     renderModule(module, getOutFile(filename, "pretty." & NimExt))
 
 proc CommandPretty(filename: string) = 
-  var module: PNode
-  module = parseFile(addFileExt(filename, NimExt))
+  var module = parseFile(addFileExt(filename, NimExt))
   if module != nil: 
     renderModule(module, getOutFile(filename, "pretty." & NimExt))