You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@senssoft.apache.org by rf...@apache.org on 2017/09/18 17:28:10 UTC

[05/21] incubator-senssoft-useralejs git commit: Removed type check to allow clearing the handler by passing a non-function

Removed type check to allow clearing the handler by passing a non-function


Project: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-useralejs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-useralejs/commit/8e4a9ed5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-useralejs/tree/8e4a9ed5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-useralejs/diff/8e4a9ed5

Branch: refs/heads/SENSSOFT-192
Commit: 8e4a9ed56d7c06079cebbcf31c71a54a55391ce4
Parents: 782fb86
Author: Rob Foley <ro...@gmail.com>
Authored: Wed Sep 13 08:56:19 2017 -0700
Committer: Rob Foley <ro...@gmail.com>
Committed: Wed Sep 13 08:56:19 2017 -0700

----------------------------------------------------------------------
 src/packageLogs.js | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-senssoft-useralejs/blob/8e4a9ed5/src/packageLogs.js
----------------------------------------------------------------------
diff --git a/src/packageLogs.js b/src/packageLogs.js
index 3a5d9b3..8e27d28 100644
--- a/src/packageLogs.js
+++ b/src/packageLogs.js
@@ -32,31 +32,17 @@ var mapHandler = null;
 /**
  * Assigns a handler to filter logs out of the queue.
  * @param  {Function} callback The handler to invoke when logging.
- * @return {boolean}          Whether the operation succeeded.
  */
 export function setLogFilter(callback) {
-  if (typeof callback !== 'function') {
-    return false;
-  }
-
   filterHandler = callback;
-
-  return true;
 }
 
 /**
  * Assigns a handler to transform logs from their default structure.
  * @param  {Function} callback The handler to invoke when logging.
- * @return {boolean}          Whether the operation succeeded.
  */
 export function setLogMapper(callback) {
-  if (typeof callback !== 'function') {
-    return false;
-  }
-
   mapHandler = callback;
-
-  return true;
 }