Skip to content

Commit 61154d8

Browse files
committed
Fix pre-commit formatting failures
1 parent 5ebd67d commit 61154d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shared-bindings/_eve/__init__.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(vertex2ii_obj, 3, 5, _vertex2ii);
848848
// }
849849

850850
static bool is_vector(mp_obj_t a) {
851-
if(!mp_obj_is_type(a, &ulab_ndarray_type)) {
851+
if (!mp_obj_is_type(a, &ulab_ndarray_type)) {
852852
return false;
853853
}
854854
ndarray_obj_t *ndarray = MP_OBJ_TO_PTR(a);
@@ -867,18 +867,18 @@ static bool is_vector(mp_obj_t a) {
867867
//| :param float y: pixel y-coordinate"""
868868
//| ...
869869
static mp_obj_t _vertex2f(mp_obj_t self, mp_obj_t a0, mp_obj_t a1) {
870-
if(is_vector(a0) && is_vector(a1)) {
870+
if (is_vector(a0) && is_vector(a1)) {
871871
ndarray_obj_t *v0 = MP_OBJ_TO_PTR(a0);
872872
ndarray_obj_t *v1 = MP_OBJ_TO_PTR(a1);
873873
mp_float_t *p0 = (mp_float_t *)v0->array;
874874
mp_float_t *p1 = (mp_float_t *)v1->array;
875-
for(size_t i=0; i < v0->len; i++, p0++, p1++) {
875+
for (size_t i = 0; i < v0->len; i++, p0++, p1++) {
876876
common_hal__eve_Vertex2f(EVEHAL(self), *p0, *p1);
877877
}
878878
} else {
879-
mp_float_t x = mp_obj_get_float(a0);
880-
mp_float_t y = mp_obj_get_float(a1);
881-
common_hal__eve_Vertex2f(EVEHAL(self), x, y);
879+
mp_float_t x = mp_obj_get_float(a0);
880+
mp_float_t y = mp_obj_get_float(a1);
881+
common_hal__eve_Vertex2f(EVEHAL(self), x, y);
882882
}
883883
return mp_const_none;
884884
}

0 commit comments

Comments
 (0)