mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-23 08:50:11 +00:00
fix: create command glitch
This commit is contained in:
parent
8cccd2ffbb
commit
ab6e7ee1a0
@ -71,7 +71,6 @@ var _createOne = function( t, opts ) {
|
|||||||
const newRez = RezClass.default();
|
const newRez = RezClass.default();
|
||||||
newRez.save(t);
|
newRez.save(t);
|
||||||
ret = newRez;
|
ret = newRez;
|
||||||
return;
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
ret = {
|
ret = {
|
||||||
fluenterror: HMSTATUS.createError,
|
fluenterror: HMSTATUS.createError,
|
||||||
@ -79,7 +78,7 @@ var _createOne = function( t, opts ) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
finally {
|
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;
|
return ret;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user