lib/grape/jwt/authentication/jwt_handler.rb in grape-jwt-authentication-2.0.4 vs lib/grape/jwt/authentication/jwt_handler.rb in grape-jwt-authentication-2.1.0

- old
+ new

@@ -100,14 +100,12 @@ # Perform the authentication logic on the Rack compatible # interface. # # @param env [Hash{String => Mixed}] the Rack environment - # - # rubocop:disable Metrics/AbcSize because thats the auth handling core + # because thats the auth handling core # :reek:TooManyStatements because reek counts exception - # handling as statements def call(env) # Unfortunately Grape's middleware stack orders the error # handling higher than the formatter. So when a error is # raised, the Rack env was not yet analysed and the content # type not negotiated. This would result in allways-JSON @@ -137,10 +135,9 @@ malformed_handler.call(env['HTTP_AUTHORIZATION'], @app) rescue AuthenticationError # Call the user defined failed authentication handler. failed_handler.call(token, @app) end - # rubocop:enable Metrics/AbcSize end end end end