Unneeded assignment in default value check removed

Unneeded assignment in default value check removed.