fix linting errors
This commit is contained in:
parent
f05abfcb9a
commit
e70b9d618e
1 changed files with 2 additions and 2 deletions
|
@ -222,12 +222,12 @@ export function projectForUserExists(username, projectId, callback) {
|
||||||
callback(false);
|
callback(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Project.findOne({_id: projectId, user: user._id}, (innerErr, project) => {
|
Project.findOne({ _id: projectId, user: user._id }, (innerErr, project) => {
|
||||||
if (project) {
|
if (project) {
|
||||||
callback(true);
|
callback(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Project.findOne({slug: projectId, user: user._id}, (slugError, projectBySlug) => {
|
Project.findOne({ slug: projectId, user: user._id }, (slugError, projectBySlug) => {
|
||||||
if (projectBySlug) {
|
if (projectBySlug) {
|
||||||
callback(true);
|
callback(true);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue