From ab6e7ee1a0f55608b531f4e644c298426291bb17 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Wed, 14 Feb 2018 11:23:51 -0500 Subject: [PATCH] fix: create command glitch --- src/verbs/create.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/verbs/create.js b/src/verbs/create.js index 3be900b..13c9716 100644 --- a/src/verbs/create.js +++ b/src/verbs/create.js @@ -71,7 +71,6 @@ var _createOne = function( t, opts ) { const newRez = RezClass.default(); newRez.save(t); ret = newRez; - return; } catch (err) { ret = { fluenterror: HMSTATUS.createError, @@ -79,7 +78,7 @@ var _createOne = function( t, opts ) { }; } 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; };