Skip to content

Commit

Permalink
improved readability of asset copying conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Mar 27, 2013
1 parent 673b58a commit 53b47f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docco.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docco.litcoffee
Expand Up @@ -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()
Expand Down

0 comments on commit 53b47f4

Please sign in to comment.