aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c
index 155e11e4..daa16b27 100644
--- a/src/index.c
+++ b/src/index.c
@@ -118,9 +118,8 @@ void index_pattern(struct image *image, IndexingMethod indm, int no_match,
new_cell = match_cell(image->candidate_cells[i],
image->molecule->cell, verbose);
image->indexed_cell = new_cell;
- if ( new_cell == NULL ) {
- STATUS("Cell %i not matched.\n", i);
- } else {
+ if ( new_cell != NULL ) {
+ STATUS("Matched on attempt %i.\n", i);
goto done;
}