mrirecon / bart

BART: Toolbox for Computational Magnetic Resonance Imaging
https://mrirecon.github.io/bart/
BSD 3-Clause "New" or "Revised" License
291 stars 161 forks source link

return statement boolean #304

Closed maddin200 closed 1 year ago

maddin200 commented 1 year ago

[D:/Data/OpenSource/bart-master/src/misc/graph.c line 635 Code: graph_t graph_bridge_node(graph_t graph, node_t node) { int N = node->N_vertices; if ((2 != N) || (!node->io_flags[0]) || (node->io_flags[1])) return NULL;

for (int i = 0; i < list_count(node->edges[0]); i++)
    if ((vertices_get(node->edges[0], i))->node->external)
        return false;  // <-- maybe better: return NULL;