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 = 1-1 lines in 2 locations

app/controllers/users_controller.rb 1 location

@@ 41-41 (lines=1) @@
38
    render("sessions/new") && return unless valid_user_or_captcha
39
40
    # Redirect to root if user token is either invalid or expired
41
    return redirect_to root_path, flash: { alert: I18n.t("registration.invite.fail") } unless passes_invite_reqs
42
43
    # User has passed all validations required
44
    @user.save

app/controllers/sessions_controller.rb 1 location

@@ 204-204 (lines=1) @@
201
    return redirect_to root_path, flash: { alert: I18n.t("registration.banned.fail") } if check_auth_deleted
202
203
    # If using invitation registration method, make sure user is invited
204
    return redirect_to root_path, flash: { alert: I18n.t("registration.invite.no_invite") } unless passes_invite_reqs
205
206
    # Switch the user to a social account if they exist under the same email with no social uid
207
    switch_account_to_social if !@user_exists && auth_changed_to_social?(@auth['info']['email'])