[Pcsclite-git-commit] [website] 01/03: Reader selection: make jslint happy

Ludovic Rousseau rousseau at moszumanska.debian.org
Sun Oct 4 11:47:46 UTC 2015


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

rousseau pushed a commit to branch master
in repository website.

commit 35ad0f9177931105dd3362735624dcc25a90bcb4
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Oct 4 13:33:02 2015 +0200

    Reader selection: make jslint happy
---
 select_readers/js/main.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/select_readers/js/main.js b/select_readers/js/main.js
index 4864e89..89690ad 100644
--- a/select_readers/js/main.js
+++ b/select_readers/js/main.js
@@ -110,15 +110,12 @@ function match(filters, reader) {
 
         switch (relation[0]) {
         case "=":
-            if ('features' == field)
-            {
+            if ('features' === field) {
                 // feature not present?
-                if (reader[field].indexOf(value) == -1) {
+                if (reader[field].indexOf(value) === -1) {
                     return false;
                 }
-            }
-            else
-            {
+            } else {
                 if (reader[field] !== value) {
                     return false;
                 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git



More information about the Pcsclite-cvs-commit mailing list