From fa330db4dd4293664ccd7fec9450d329c4e35c8b Mon Sep 17 00:00:00 2001 From: francesco Date: Tue, 29 Oct 2024 09:35:04 +0100 Subject: [PATCH 1/2] perf: avoid call another function --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 60e9b82..396d1e7 100644 --- a/index.js +++ b/index.js @@ -12,9 +12,7 @@ const typeParsers = { } // the empty parse function -function noParse (val) { - return String(val) -}; +const noParse = String; // returns a function used to convert a specific type (specified by // oid) into a result javascript type From bf5f155155a225864cf04c1c395ac5b6cb1bae51 Mon Sep 17 00:00:00 2001 From: francesco Date: Tue, 29 Oct 2024 10:29:38 +0100 Subject: [PATCH 2/2] fix: lint --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 396d1e7..f1a0051 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const typeParsers = { } // the empty parse function -const noParse = String; +const noParse = String // returns a function used to convert a specific type (specified by // oid) into a result javascript type