diff --git a/src/edit/methods.js b/src/edit/methods.js
index <HASH>..<HASH> 100644
--- a/src/edit/methods.js
+++ b/src/edit/methods.js
@@ -480,7 +480,7 @@ function findPosH(doc, pos, dir, unit, visually) {
       next = moveVisually(doc.cm, lineObj, pos, dir)
     } else {
       let ch = moveLogically(lineObj, pos, dir)
-      next = ch == null ?  null : new Pos(pos.line, ch, dir < 0 ? "after" : "before")
+      next = ch == null ? null : new Pos(pos.line, ch, dir < 0 ? "after" : "before")
     }
     if (next == null) {
       if (!boundToLine && findNextLine())
diff --git a/test/test.js b/test/test.js
index <HASH>..<HASH> 100644
--- a/test/test.js
+++ b/test/test.js
@@ -34,7 +34,6 @@ var opera = /Opera\/\./.test(navigator.userAgent);
 var opera_version = opera && navigator.userAgent.match(/Version\/(\d+\.\d+)/);
 if (opera_version) opera_version = Number(opera_version);
 var opera_lt10 = opera && (!opera_version || opera_version < 10);
-var webkit = /WebKit\//.test(navigator.userAgent);
 
 namespace = "core_";
Remove unused variable and duplicate white space