Cloud storage: clean up error propagation

We were falling of the end of a number of functions that were supposed to
return 0 on success or an error.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-13 20:03:20 -07:00
parent 0c5ea57f1c
commit 9ec155fad0
2 changed files with 14 additions and 8 deletions

View file

@ -1142,9 +1142,10 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
if (prefs.cloud_background_sync) {
/* now sync the tree with the cloud server */
if (strstr(remote, "https://cloud.subsurface-divelog.org")) {
sync_with_remote(repo, remote, branch, RT_HTTPS);
return sync_with_remote(repo, remote, branch, RT_HTTPS);
}
}
return 0;
}
int git_save_dives(struct git_repository *repo, const char *branch, const char *remote, bool select_only)