Skip to content

Commit

Permalink
fix: create command glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
hacksalot committed Feb 14, 2018
1 parent 8cccd2f commit ab6e7ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/verbs/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ var _createOne = function( t, opts ) {
const newRez = RezClass.default();
newRez.save(t);
ret = newRez;
return;
} catch (err) {
ret = {
fluenterror: HMSTATUS.createError,
inner: err
};
}
finally {
this.stat(HMEVENT.afterCreate, {fmt: safeFmt, file: t, isError: ret.fluenterror});
this.stat(HMEVENT.afterCreate, { fmt: safeFmt, file: t, isError: ret.fluenterror });
}
return ret;
};

0 comments on commit ab6e7ee

Please sign in to comment.