     localDir = config.get("siteLocalDir")
     postsDir = config.get("sitePostsDir")
     postsDir = utils.dirTemplate(postsDir)
-    return path.join(localDir, postsDir)
+
+    path.join(localDir, postsDir)
 
   getPostName: ->
     template = config.get("newPostFileName")
+
     date = utils.getDate()
     info =
       title: @getPostTitle()
       extension: @getPostExtension()
-    return utils.template(template, $.extend(info, date))
+
+    utils.template(template, $.extend(info, date))
 
   getPostTitle: ->
     if config.get("publishRenameBasedOnTitle")


  moveDraft: ->
    try
      if fs.existsSync(@postPath)
        alert("Error:\nPost #{@postPath} already exists!")
      else
        fs.renameSync(@draftPath, @postPath)
    catch error
      alert("Error:\n#{error.message}")


      utils.getTitleSlug(@draftPath)

  getPostExtension: ->
    extname = path.extname(@draftPath) if config.get("publishKeepFileExtname")
    extname || config.get("fileExtension")
