Removed unnecessary try/catch

This commit is contained in:
Fabian Furger 2015-05-03 20:12:37 +01:00
parent 6aec0c9e09
commit 3a899b3184

View file

@ -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"); }
});