fix linting errors

This commit is contained in:
Cassie Tarakajian 2018-02-20 14:22:33 -05:00
parent f05abfcb9a
commit e70b9d618e

View file

@ -222,12 +222,12 @@ export function projectForUserExists(username, projectId, callback) {
callback(false);
return;
}
Project.findOne({_id: projectId, user: user._id}, (innerErr, project) => {
Project.findOne({ _id: projectId, user: user._id }, (innerErr, project) => {
if (project) {
callback(true);
return;
}
Project.findOne({slug: projectId, user: user._id}, (slugError, projectBySlug) => {
Project.findOne({ slug: projectId, user: user._id }, (slugError, projectBySlug) => {
if (projectBySlug) {
callback(true);
return;