From 5fb30fdc37295ed6c7a503232966ff65d46454bc Mon Sep 17 00:00:00 2001 From: fadomire Date: Fri, 4 Mar 2022 11:17:36 +0100 Subject: [PATCH] Polish: Dont repeat twice same condition options.transform --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3ea58a4..c4487c3 100644 --- a/src/index.js +++ b/src/index.js @@ -87,7 +87,7 @@ export default declare((api, options) => { } } - if (options.transform && options.transform) { + if (options.transform) { queryDocument = options.transform(finalSource, queryDocument); }