mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 05:12: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]) {
|
||||
case "--record":
|
||||
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
} catch (e) {
|
||||
throw e;
|
||||
}
|
||||
data = JSON.parse(data);
|
||||
|
||||
GitStats.record(data, function (err) {
|
||||
if (err) { return Logger.log(err, "error"); }
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue