mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 21:37:58 +01:00
remove unnecessary parentheses from typeof args
This commit is contained in:
@@ -554,7 +554,7 @@ vimperator.Completion = function () // {{{
|
||||
// items must be an array of strings
|
||||
match: function (items, filter, case_sensitive)
|
||||
{
|
||||
if (typeof(filter) != "string" || !items)
|
||||
if (typeof filter != "string" || !items)
|
||||
return false;
|
||||
|
||||
var items_str = items.join(" ");
|
||||
|
||||
@@ -43,7 +43,7 @@ vimperator.util = {
|
||||
// any line breaks are displayed as \n
|
||||
colorize: function (arg, process_strings)
|
||||
{
|
||||
var type = typeof(arg);
|
||||
var type = typeof arg;
|
||||
|
||||
// some objects like window.JSON or getBrowsers()._browsers need the try/catch
|
||||
try
|
||||
|
||||
@@ -418,7 +418,7 @@ const vimperator = (function () //{{{
|
||||
if (!args)
|
||||
args = [];
|
||||
|
||||
if (typeof(blocking) != "boolean")
|
||||
if (typeof blocking != "boolean")
|
||||
blocking = false;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user