Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed Apr 13, 2016
1 parent 7d17593 commit 96eeb45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# angular-tpl2js

> Inject AngularJS directive templates to inline JavaScript
> Inject AngularJS directive templates as inline JavaScript
[![Build Status](https://img.shields.io/travis/scniro/angular-tpl2js.svg?style=flat-square)](https://travis-ci.org/scniro/angular-tpl2js)
[![NPM Version](https://img.shields.io/npm/v/angular-tpl2js.svg?style=flat-square)](https://www.npmjs.com/package/angular-tpl2js)
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ function TemplateManager() {
engine.templates.get(css).then(function (transformed) {
engine.templates.set(transformed).then(function (output) {
done(null, output); // -- out
}, function(err){
done(err) // -- templates.set promise error
});
}, function (err) {
done(err);
done(err); // -- templates.get promise error
});
}

Expand Down

0 comments on commit 96eeb45

Please sign in to comment.