Skip to content

Commit 2b77b27

Browse files
authored
Merge pull request #49 from outdoorsy/fix-undefined-this-app
Guard against this.app being undefined
2 parents 4d3eef3 + 4059da3 commit 2b77b27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = {
118118
});
119119
});
120120

121-
if (this.app.name === "dummy") {
121+
if (this.app && this.app.name === "dummy") {
122122
// our dummy app has an echo endpoint!
123123
app.post('/fastboot-testing/echo', bodyParser.text(), (req, res) => {
124124
res.send(req.body);

0 commit comments

Comments
 (0)