Removed unused variable in assert