mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Removed unnecessary try/catch
This commit is contained in:
parent
6aec0c9e09
commit
3a899b3184
1 changed files with 2 additions and 5 deletions
|
@ -18,11 +18,8 @@ Moment.suppressDeprecationWarnings = true;
|
||||||
switch (process.argv[2]) {
|
switch (process.argv[2]) {
|
||||||
case "--record":
|
case "--record":
|
||||||
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
||||||
try {
|
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
} catch (e) {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
GitStats.record(data, function (err) {
|
GitStats.record(data, function (err) {
|
||||||
if (err) { return Logger.log(err, "error"); }
|
if (err) { return Logger.log(err, "error"); }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue