Skip to content

Commit

Permalink
fix issue raised in codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Feb 20, 2019
1 parent 72cf15a commit ff6c885
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/cunit/test_darray.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank
ERR(ERR_WRONG);

/* This should work - library type conversion */
if (other_type && (ret = PIOc_write_darray(ncid, varid2, ioid, arraylen, test_data, ofillvalue))){
printf("other_type %d ret %d fillvalue %x\n",other_type, ret, fillvalue);
if (other_type && (ret = PIOc_write_darray(ncid, varid2, ioid, arraylen, test_data, ofillvalue)))
ERR(ret);
}

/* Write the data. */
if ((ret = PIOc_write_darray(ncid, varid, ioid, arraylen, test_data, fillvalue)))
ERR(ret);
Expand Down

0 comments on commit ff6c885

Please sign in to comment.