mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-28 03:02:58 +08:00
Removed redundant req.assert for empty email
Swapped code order of a few things in app.js to make it more consistent in terms of coding style
This commit is contained in:
@@ -22,7 +22,6 @@ exports.getContact = function(req, res) {
|
||||
|
||||
exports.postContact = function(req, res) {
|
||||
req.assert('name', 'Name cannot be blank').notEmpty();
|
||||
req.assert('email', 'Email cannot be blank').notEmpty();
|
||||
req.assert('email', 'Email is not valid').isEmail();
|
||||
req.assert('message', 'Message cannot be blank').notEmpty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user