Fixed indentation

This commit is contained in:
Tamir Bahar 2017-04-05 21:59:30 +03:00
parent b81810e9cb
commit 784583d21e
1 changed files with 12 additions and 12 deletions

View File

@ -168,19 +168,19 @@ init_file_backend(PyObject *self, PyObject *args)
return PyCapsule_New(repository, "backend", NULL);
cleanup:
if (repository) {
git_repository_free(repository);
}
if (repository) {
git_repository_free(repository);
}
if (err == GIT_ENOTFOUND) {
PyErr_Format(PyExc_Exception,
"Repository not found at %s", path);
} else {
PyErr_Format(PyExc_Exception,
"Git error %d while opening repo at %s", err, path);
}
return NULL;
if (err == GIT_ENOTFOUND) {
PyErr_Format(PyExc_Exception,
"Repository not found at %s", path);
} else {
PyErr_Format(PyExc_Exception,
"Git error %d while opening repo at %s", err, path);
}
return NULL;
}