Skip to content

Commit 3835f94

Browse files
committed
STY: add braces to cases
1 parent 825b53d commit 3835f94

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bottleneck/src/nonreduce_axis_template.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,16 +725,17 @@ nonreducer_axis(char * name,
725725
}
726726

727727
dtype = PyArray_TYPE(a);
728-
if (dtype == NPY_float64)
728+
if (dtype == NPY_float64) {
729729
y = nra_float64(a, axis, n);
730-
else if (dtype == NPY_float32)
730+
} else if (dtype == NPY_float32) {
731731
y = nra_float32(a, axis, n);
732-
else if (dtype == NPY_int64)
732+
} else if (dtype == NPY_int64) {
733733
y = nra_int64(a, axis, n);
734-
else if (dtype == NPY_int32)
734+
} else if (dtype == NPY_int32) {
735735
y = nra_int32(a, axis, n);
736-
else
736+
} else {
737737
y = slow(name, args, kwds);
738+
}
738739

739740
Py_DECREF(a);
740741

0 commit comments

Comments
 (0)