Skip to content

Commit

Permalink
Address codacy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Sep 18, 2023
1 parent d282d06 commit db7d353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/seacas/libraries/exodus/src/ex_put_num_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ int ex_put_num_map(int exoid, ex_entity_type map_type, ex_entity_id map_id, cons
for a specific file and returns that value.
*/
int cur_num_maps = ex__get_file_item(exoid, ex__get_counter_list(map_type));
int num_maps = num_entries;
if (!overwrite_map) {
int num_maps = num_entries;
if (cur_num_maps >= num_maps) {
snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: exceeded number of %ss (%d) specified in file id %d",
ex_name_of_object(map_type), num_maps, exoid);
Expand Down

0 comments on commit db7d353

Please sign in to comment.