Permalink
Browse files

improved readability of asset copying conditions

  • Loading branch information...
1 parent 673b58a commit 53b47f4421624b6f3c1a7786acdde4a9752965b0 @neocotic neocotic committed Mar 27, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −2 docco.js
  2. +2 −2 docco.litcoffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -85,8 +85,8 @@ out in an HTML template.
callback or= (error) -> throw error if error
complete = ->
fs.copy config.css, config.output, (error) ->
- return callback error if error
- if fs.existsSync config.public then fs.copy config.public, config.output, callback
+ if error then callback error
+ else if fs.existsSync config.public then fs.copy config.public, config.output, callback
else callback()
files = config.sources.slice()

0 comments on commit 53b47f4

Please sign in to comment.