Apply suggestions from code review

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
John Tramm 2020-01-15 17:02:37 -06:00 committed by GitHub
parent c60a7e569f
commit 5066bfa42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 13 deletions

View file

@ -28,7 +28,7 @@ int64_t fission_bank_max;
void free_memory_bank()
{
simulation::source_bank.clear();
if( simulation::fission_bank != nullptr )
if (simulation::fission_bank)
delete[] simulation::fission_bank;
simulation::fission_bank = nullptr;
simulation::fission_bank_length = 0;