this code is reached only with query string
authorDamyan Ivanov <dmn@debian.org>
Tue, 20 Jun 2017 18:52:07 +0000 (18:52 +0000)
committerDamyan Ivanov <dmn@debian.org>
Tue, 20 Jun 2017 18:52:07 +0000 (18:52 +0000)
icedeb.js

index 0d42d9c..2d2a10e 100644 (file)
--- a/icedeb.js
+++ b/icedeb.js
@@ -137,9 +137,7 @@ function link_clicked(e) {
       url = 'https://lists.debian.org/msgid-search/' + clip;
       break;
     case 'ddpo':
-      url = 'https://qa.debian.org/developer.php';
-      if (clip != '')
-        url += '?login=' + clip;
+      url = 'https://qa.debian.org/developer.php?login=' + clip;
       break;
     case 'dmd':
       url = 'https://udd.debian.org/dmd.cgi?email1=' + clip;
@@ -148,9 +146,7 @@ function link_clicked(e) {
       url = 'https://buildd.debian.org/' + clip;
       break;
     case 'security':
-      url = 'https://security-tracker.debian.org/';
-      if (clip != '')
-        url += 'tracker/' + clip;
+      url = 'https://security-tracker.debian.org/tracker/' + clip;
       break;
   }