改成一行吧：
session[:current_question_set] = params[:question_set].nil? ? session[:current_question_set] : params[:question_set]