You can create a null
-resolved promise and return it right away:
if (!conditionsMet) {
return $q.when(null);
}
Or you you perceive the situation when the conditions are not met as an error, you can return a rejected promise:
if (!conditionsMet) {
return $q.reject(new Error('Conditions have not been met...'));
}