Skip to content

Commit

Permalink
chore: remove redundant NULL check
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Miller - NOAA <[email protected]>
  • Loading branch information
hellkite500 and PhilMiller authored Jul 10, 2024
1 parent a046a34 commit 025b4c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ for(time_step_num=0;time_step_num<num_time_steps;time_step_num++)
printf(" ************ time step %d ******** \n",time_step_num);
}

if( state_previous != NULL ) listDelete(state_previous);
state_previous = NULL;
listDelete(state_previous);
state_previous = listCopy(head);

if(debug_flag) {
Expand Down

0 comments on commit 025b4c7

Please sign in to comment.