Skip to content

Commit 819cbff

Browse files
committed
Remove some tabs
1 parent 4fbc1f1 commit 819cbff

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/repository.c

+8-9
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ Repository_init(Repository *self, PyObject *args, PyObject *kwds)
9898
}
9999

100100
if (!PyArg_ParseTuple(args, "O", &backend)) {
101-
return -1;
101+
return -1;
102102
}
103103

104104
self->repo = PyCapsule_GetPointer(backend, "backend");
105-
if (self->repo == NULL) {
106-
PyErr_SetString(PyExc_TypeError,
105+
if (self->repo == NULL) {
106+
PyErr_SetString(PyExc_TypeError,
107107
"Repository unable to unpack backend.");
108108
return -1;
109-
}
109+
}
110110
self->owned = 1;
111111
self->config = NULL;
112112
self->index = NULL;
@@ -897,7 +897,7 @@ Repository_create_blob_fromiobase(Repository *self, PyObject *py_file)
897897

898898
err = git_blob_create_fromstream(&stream, self->repo, NULL);
899899
if (err < 0)
900-
return Error_set(err);
900+
return Error_set(err);
901901

902902
for (;;) {
903903
PyObject *py_bytes;
@@ -916,12 +916,12 @@ Repository_create_blob_fromiobase(Repository *self, PyObject *py_file)
916916
if (PyBytes_AsStringAndSize(py_bytes, &bytes, &size)) {
917917
Py_DECREF(py_bytes);
918918
return NULL;
919-
}
919+
}
920920

921-
if (size == 0) {
921+
if (size == 0) {
922922
Py_DECREF(py_bytes);
923923
break;
924-
}
924+
}
925925

926926
err = stream->write(stream, bytes, size);
927927
Py_DECREF(py_bytes);
@@ -1794,4 +1794,3 @@ PyTypeObject RepositoryType = {
17941794
0, /* tp_alloc */
17951795
0, /* tp_new */
17961796
};
1797-

0 commit comments

Comments
 (0)