1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

refactor state handling a bit

+ some random other changes I forgot to commit earlier
This commit is contained in:
Robin Appelman 2016-04-23 15:41:56 +02:00
commit c43627e3c1
11 changed files with 75 additions and 92 deletions

View file

@ -30,12 +30,12 @@ fs.readFile(argv._[0], function (err, data) {
echo(head);
return;
}
var body = parser.parseBody();
var match = parser.parseBody();
if (argv.dump) {
echo(parser.packets);
echo(parser.match.packets);
} else if (argv.strings) {
echo(parser.strings);
echo(parser.match.strings);
} else {
echo(body);
echo(match.getState());
}
});