aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/request
diff options
context:
space:
mode:
Diffstat (limited to 'lib/caldav/request')
-rw-r--r--lib/caldav/request/calendar_home.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/caldav/request/calendar_home.js b/lib/caldav/request/calendar_home.js
index f4f80ac..7d4c744 100644
--- a/lib/caldav/request/calendar_home.js
+++ b/lib/caldav/request/calendar_home.js
@@ -62,7 +62,8 @@
var principal;
if (err) {
- return callback(err);
+ callback(err);
+ return;
}
principal = findProperty('current-user-principal', data, true);
@@ -85,7 +86,8 @@
find.send(function(err, data) {
if (err) {
- return callback(err);
+ callback(err);
+ return;
}
details = {
@@ -107,7 +109,8 @@
self._findPrincipal(self.url, function(err, url) {
if (!url) {
- return callback(new Error('Cannot resolve principal url'));
+ callback(new Error('Cannot resolve principal url'));
+ return;
}
self._findCalendarHome(url, function(err, details) {