GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 3-3 lines in 2 locations

app/controllers/users_controller.rb 1 location

@@ 170-172 (lines=3) @@
167
    @user = User.where(uid: params[:user_uid]).includes(:roles).first
168
  end
169
170
  def ensure_unauthenticated
171
    redirect_to current_user.main_room if current_user && params[:old_twitter_user_id].nil?
172
  end
173
174
  # Verify that GreenLight is configured to allow user signup.
175
  def check_user_signup_allowed

app/controllers/sessions_controller.rb 1 location

@@ 145-147 (lines=3) @@
142
    redirect_to root_path unless Rails.configuration.allow_user_signup
143
  end
144
145
  def ensure_unauthenticated
146
    redirect_to current_user.main_room if current_user && params[:old_twitter_user_id].nil?
147
  end
148
149
  def session_params
150
    params.require(:session).permit(:email, :password)