From 8f6892300836e6946ff0c53597c4afd6d1072fcc Mon Sep 17 00:00:00 2001 From: Richard Shephard Date: Thu, 16 May 2019 17:00:47 +0200 Subject: [PATCH] Remove undefine's check as the options will need to be provided anyways... --- src/projections/projectionsClient.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/projections/projectionsClient.js b/src/projections/projectionsClient.js index dfe51d0..7af5169 100644 --- a/src/projections/projectionsClient.js +++ b/src/projections/projectionsClient.js @@ -103,8 +103,6 @@ ProjectionsClient.prototype.updateQuery = function(httpEndPoint, name, query, us }; ProjectionsClient.prototype.delete = function(httpEndPoint, name, deleteEmittedStreams, deleteStateStream, deleteCheckpointStream, userCredentials) { - const stateStream = (deleteStateStream === undefined) ? false : deleteStateStream; - const checkpointStream = (deleteCheckpointStream === undefined) ? false : deleteCheckpointStream; return this.sendDelete(httpEndPoint + '/projection/' + name + '?deleteStateStream=' + stateStream + '&deleteCheckpointStream' + checkpointStream + '&deleteEmittedStreams=' + deleteEmittedStreams, '', userCredentials, HTTP_OK); };