Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit e265694

Browse files
author
Shane Tomlinson
committed
fix(server): Return undefined from Customs.prototype.flag if everyting is OK
1 parent 29d7fde commit e265694

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/customs.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,13 @@ module.exports = function (log, error) {
7676
}
7777
)
7878
.then(
79-
function (result) {
80-
return
81-
},
79+
function () {},
8280
function (err) {
8381
log.error({ op: 'customs.flag.1', email: email, err: err })
8482
// If this happens, either:
8583
// - (1) the url in config doesn't point to a real customs server
8684
// - (2) the customs server returned an internal server error
8785
// Either way, allow the request through so we fail open.
88-
return
8986
}
9087
)
9188
}

0 commit comments

Comments
 (0)