fix class snippet

delete void unnecessary place