From ea48fbc04bf6a40e393640a46927cba3fbe47ee8 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 20 Apr 2018 10:37:37 +0200 Subject: [PATCH] Bug 20402: Remove useless call to Koha::OAuthAccessTokens->search --- Koha/REST/V1/OAuth.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/Koha/REST/V1/OAuth.pm b/Koha/REST/V1/OAuth.pm index 7be1a46e27..727838bf2e 100644 --- a/Koha/REST/V1/OAuth.pm +++ b/Koha/REST/V1/OAuth.pm @@ -48,8 +48,6 @@ sub token { expires_in => $expires_in, ); - my $at = Koha::OAuthAccessTokens->search({ access_token => $token })->next; - my $response = { access_token => $token, token_type => 'Bearer', -- 2.17.0