gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 254/459: fix array splicing


From: gnunet
Subject: [reclaim-ui] 254/459: fix array splicing
Date: Fri, 11 Jun 2021 23:25:46 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit ca7cd0d97e3766847f8303542abaad4a3b0707b0
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Mon Aug 3 17:17:28 2020 +0200

    fix array splicing
---
 src/app/open-id.service.ts | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index 2c3136a..7181445 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -131,9 +131,15 @@ export class OpenIdService {
 
     const scopes = this.params['scope'].split(' ');
     var i = scopes.indexOf('openid');
-    scopes.splice(i, 1);
+    if (i >= 0)
+    {
+      scopes.splice(i, 1);
+    }
     i = scopes.indexOf('profile');
-    scopes.splice(i, 1);
+    if (i >= 0)
+    {
+      scopes.splice(i, 1);
+    }
     return scopes;
   }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]