[gnome-continuous] libqa: compare loginType with undefined, not null



commit 085340af3f672cb5add11ab8a9ee9885486b6745
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Fri Mar 6 16:17:05 2015 +0100

    libqa: compare loginType with undefined, not null

 src/js/libqa.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/libqa.js b/src/js/libqa.js
index f8545a9..639583f 100644
--- a/src/js/libqa.js
+++ b/src/js/libqa.js
@@ -257,7 +257,7 @@ function enableAutologin(currentDir, currentEtcDir, username, loginType, cancell
     let keyfile = new GLib.KeyFile();
     keyfile.load_from_file(gdmCustomPath.get_path(), GLib.KeyFileFlags.NONE);
     let loginString = null;
-    if (loginType === null) {
+    if (loginType === undefined) {
         loginString = 'Automatic';
     } else {
         loginString = loginType;


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