Unneeded assignment in default value check removed