From 0e0ed771afc743d234635185f00b9bb6a7692bed Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:37:52 +0000 Subject: [PATCH] refactor: remove trailing `undefined` argument from function call When an argument is omitted from a function call, it will default to `undefined`. It is therefore redundant to explicitly pass an `undefined` literal as the last argument. --- aether-core/aether/protos/beapi/beapi_pb.js | 66 ++++++++++----------- aether-core/aether/protos/clapi/clapi_pb.js | 32 +++++----- aether-core/aether/protos/feapi/feapi_pb.js | 24 ++++---- 3 files changed, 61 insertions(+), 61 deletions(-) diff --git a/aether-core/aether/protos/beapi/beapi_pb.js b/aether-core/aether/protos/beapi/beapi_pb.js index d56110a..5630ea1 100644 --- a/aether-core/aether/protos/beapi/beapi_pb.js +++ b/aether-core/aether/protos/beapi/beapi_pb.js @@ -574,7 +574,7 @@ proto.beapi.Filters.prototype.setLastreftimerange = function (value) { }; proto.beapi.Filters.prototype.clearLastreftimerange = function () { - this.setLastreftimerange(undefined); + this.setLastreftimerange(); }; /** @@ -601,7 +601,7 @@ proto.beapi.Filters.prototype.setFingerprints = function (value) { }; proto.beapi.Filters.prototype.clearFingerprints = function () { - this.setFingerprints(undefined); + this.setFingerprints(); }; /** @@ -628,7 +628,7 @@ proto.beapi.Filters.prototype.setTypefilters = function (value) { }; proto.beapi.Filters.prototype.clearTypefilters = function () { - this.setTypefilters(undefined); + this.setTypefilters(); }; /** @@ -655,7 +655,7 @@ proto.beapi.Filters.prototype.setGraphfilters = function (value) { }; proto.beapi.Filters.prototype.clearGraphfilters = function () { - this.setGraphfilters(undefined); + this.setGraphfilters(); }; /** @@ -1603,7 +1603,7 @@ proto.beapi.AccessRequest.prototype.setRequesterid = function (value) { }; proto.beapi.AccessRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -1770,7 +1770,7 @@ proto.beapi.AccessResponse.prototype.setStatus = function (value) { }; proto.beapi.AccessResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1950,7 +1950,7 @@ proto.beapi.BoardsRequest.prototype.setRequesterid = function (value) { }; proto.beapi.BoardsRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -1977,7 +1977,7 @@ proto.beapi.BoardsRequest.prototype.setFilters = function (value) { }; proto.beapi.BoardsRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -2169,7 +2169,7 @@ proto.beapi.BoardsResponse.prototype.setStatus = function (value) { }; proto.beapi.BoardsResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -2379,7 +2379,7 @@ proto.beapi.ThreadsRequest.prototype.setRequesterid = function (value) { }; proto.beapi.ThreadsRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -2406,7 +2406,7 @@ proto.beapi.ThreadsRequest.prototype.setFilters = function (value) { }; proto.beapi.ThreadsRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -2598,7 +2598,7 @@ proto.beapi.ThreadsResponse.prototype.setStatus = function (value) { }; proto.beapi.ThreadsResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -2800,7 +2800,7 @@ proto.beapi.PostsRequest.prototype.setRequesterid = function (value) { }; proto.beapi.PostsRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -2827,7 +2827,7 @@ proto.beapi.PostsRequest.prototype.setFilters = function (value) { }; proto.beapi.PostsRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -3013,7 +3013,7 @@ proto.beapi.PostsResponse.prototype.setStatus = function (value) { }; proto.beapi.PostsResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -3212,7 +3212,7 @@ proto.beapi.VotesRequest.prototype.setRequesterid = function (value) { }; proto.beapi.VotesRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -3239,7 +3239,7 @@ proto.beapi.VotesRequest.prototype.setFilters = function (value) { }; proto.beapi.VotesRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -3425,7 +3425,7 @@ proto.beapi.VotesResponse.prototype.setStatus = function (value) { }; proto.beapi.VotesResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -3624,7 +3624,7 @@ proto.beapi.KeysRequest.prototype.setRequesterid = function (value) { }; proto.beapi.KeysRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -3651,7 +3651,7 @@ proto.beapi.KeysRequest.prototype.setFilters = function (value) { }; proto.beapi.KeysRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -3835,7 +3835,7 @@ proto.beapi.KeysResponse.prototype.setStatus = function (value) { }; proto.beapi.KeysResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -4045,7 +4045,7 @@ proto.beapi.TruststatesRequest.prototype.setRequesterid = function (value) { }; proto.beapi.TruststatesRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -4072,7 +4072,7 @@ proto.beapi.TruststatesRequest.prototype.setFilters = function (value) { }; proto.beapi.TruststatesRequest.prototype.clearFilters = function () { - this.setFilters(undefined); + this.setFilters(); }; /** @@ -4268,7 +4268,7 @@ proto.beapi.TruststatesResponse.prototype.setStatus = function (value) { }; proto.beapi.TruststatesResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -4486,7 +4486,7 @@ proto.beapi.BoardThreadsCountRequest.prototype.setRequesterid = function ( }; proto.beapi.BoardThreadsCountRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -4678,7 +4678,7 @@ proto.beapi.BoardThreadsCountResponse.prototype.setStatus = function (value) { }; proto.beapi.BoardThreadsCountResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -4870,7 +4870,7 @@ proto.beapi.ThreadPostsCountRequest.prototype.setRequesterid = function ( }; proto.beapi.ThreadPostsCountRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -5062,7 +5062,7 @@ proto.beapi.ThreadPostsCountResponse.prototype.setStatus = function (value) { }; proto.beapi.ThreadPostsCountResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -5397,7 +5397,7 @@ proto.beapi.MintedContentPayload.prototype.setRequesterid = function (value) { }; proto.beapi.MintedContentPayload.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -5823,7 +5823,7 @@ proto.beapi.MintedContentResponse.prototype.setStatus = function (value) { }; proto.beapi.MintedContentResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -6006,7 +6006,7 @@ proto.beapi.ConnectToRemoteRequest.prototype.setRequesterid = function (value) { }; proto.beapi.ConnectToRemoteRequest.prototype.clearRequesterid = function () { - this.setRequesterid(undefined); + this.setRequesterid(); }; /** @@ -6033,7 +6033,7 @@ proto.beapi.ConnectToRemoteRequest.prototype.setAddress = function (value) { }; proto.beapi.ConnectToRemoteRequest.prototype.clearAddress = function () { - this.setAddress(undefined); + this.setAddress(); }; /** @@ -6201,7 +6201,7 @@ proto.beapi.ConnectToRemoteResponse.prototype.setStatus = function (value) { }; proto.beapi.ConnectToRemoteResponse.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** diff --git a/aether-core/aether/protos/clapi/clapi_pb.js b/aether-core/aether/protos/clapi/clapi_pb.js index 9e25fa4..2bdd336 100644 --- a/aether-core/aether/protos/clapi/clapi_pb.js +++ b/aether-core/aether/protos/clapi/clapi_pb.js @@ -1025,7 +1025,7 @@ proto.clapi.InflightBoard.prototype.setStatus = function (value) { }; proto.clapi.InflightBoard.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1052,7 +1052,7 @@ proto.clapi.InflightBoard.prototype.setEntity = function (value) { }; proto.clapi.InflightBoard.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -1229,7 +1229,7 @@ proto.clapi.InflightThread.prototype.setStatus = function (value) { }; proto.clapi.InflightThread.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1256,7 +1256,7 @@ proto.clapi.InflightThread.prototype.setEntity = function (value) { }; proto.clapi.InflightThread.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -1425,7 +1425,7 @@ proto.clapi.InflightPost.prototype.setStatus = function (value) { }; proto.clapi.InflightPost.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1452,7 +1452,7 @@ proto.clapi.InflightPost.prototype.setEntity = function (value) { }; proto.clapi.InflightPost.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -1621,7 +1621,7 @@ proto.clapi.InflightVote.prototype.setStatus = function (value) { }; proto.clapi.InflightVote.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1648,7 +1648,7 @@ proto.clapi.InflightVote.prototype.setEntity = function (value) { }; proto.clapi.InflightVote.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -1817,7 +1817,7 @@ proto.clapi.InflightKey.prototype.setStatus = function (value) { }; proto.clapi.InflightKey.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -1844,7 +1844,7 @@ proto.clapi.InflightKey.prototype.setEntity = function (value) { }; proto.clapi.InflightKey.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -2028,7 +2028,7 @@ proto.clapi.InflightTruststate.prototype.setStatus = function (value) { }; proto.clapi.InflightTruststate.prototype.clearStatus = function () { - this.setStatus(undefined); + this.setStatus(); }; /** @@ -2055,7 +2055,7 @@ proto.clapi.InflightTruststate.prototype.setEntity = function (value) { }; proto.clapi.InflightTruststate.prototype.clearEntity = function () { - this.setEntity(undefined); + this.setEntity(); }; /** @@ -2729,7 +2729,7 @@ proto.clapi.AmbientStatusPayload.prototype.setBackendambientstatus = function ( proto.clapi.AmbientStatusPayload.prototype.clearBackendambientstatus = function () { - this.setBackendambientstatus(undefined); + this.setBackendambientstatus(); }; /** @@ -2765,7 +2765,7 @@ proto.clapi.AmbientStatusPayload.prototype.setFrontendambientstatus = function ( proto.clapi.AmbientStatusPayload.prototype.clearFrontendambientstatus = function () { - this.setFrontendambientstatus(undefined); + this.setFrontendambientstatus(); }; /** @@ -2793,7 +2793,7 @@ proto.clapi.AmbientStatusPayload.prototype.setInflights = function (value) { }; proto.clapi.AmbientStatusPayload.prototype.clearInflights = function () { - this.setInflights(undefined); + this.setInflights(); }; /** @@ -3128,7 +3128,7 @@ proto.clapi.AmbientLocalUserEntityPayload.prototype.setLocaluserentity = proto.clapi.AmbientLocalUserEntityPayload.prototype.clearLocaluserentity = function () { - this.setLocaluserentity(undefined); + this.setLocaluserentity(); }; /** diff --git a/aether-core/aether/protos/feapi/feapi_pb.js b/aether-core/aether/protos/feapi/feapi_pb.js index 9cfb3c6..e778b1a 100644 --- a/aether-core/aether/protos/feapi/feapi_pb.js +++ b/aether-core/aether/protos/feapi/feapi_pb.js @@ -1330,7 +1330,7 @@ proto.feapi.ThreadAndPostsResponse.prototype.setBoard = function (value) { }; proto.feapi.ThreadAndPostsResponse.prototype.clearBoard = function () { - this.setBoard(undefined); + this.setBoard(); }; /** @@ -1361,7 +1361,7 @@ proto.feapi.ThreadAndPostsResponse.prototype.setThread = function (value) { }; proto.feapi.ThreadAndPostsResponse.prototype.clearThread = function () { - this.setThread(undefined); + this.setThread(); }; /** @@ -1795,7 +1795,7 @@ proto.feapi.BoardAndThreadsResponse.prototype.setBoard = function (value) { }; proto.feapi.BoardAndThreadsResponse.prototype.clearBoard = function () { - this.setBoard(undefined); + this.setBoard(); }; /** @@ -2767,7 +2767,7 @@ proto.feapi.UserAndGraphResponse.prototype.setUser = function (value) { }; proto.feapi.UserAndGraphResponse.prototype.clearUser = function () { - this.setUser(undefined); + this.setUser(); }; /** @@ -3389,7 +3389,7 @@ proto.feapi.ContentEventPayload.prototype.setEvent = function (value) { }; proto.feapi.ContentEventPayload.prototype.clearEvent = function () { - this.setEvent(undefined); + this.setEvent(); }; /** @@ -3416,7 +3416,7 @@ proto.feapi.ContentEventPayload.prototype.setBoarddata = function (value) { }; proto.feapi.ContentEventPayload.prototype.clearBoarddata = function () { - this.setBoarddata(undefined); + this.setBoarddata(); }; /** @@ -3443,7 +3443,7 @@ proto.feapi.ContentEventPayload.prototype.setThreaddata = function (value) { }; proto.feapi.ContentEventPayload.prototype.clearThreaddata = function () { - this.setThreaddata(undefined); + this.setThreaddata(); }; /** @@ -3470,7 +3470,7 @@ proto.feapi.ContentEventPayload.prototype.setPostdata = function (value) { }; proto.feapi.ContentEventPayload.prototype.clearPostdata = function () { - this.setPostdata(undefined); + this.setPostdata(); }; /** @@ -3497,7 +3497,7 @@ proto.feapi.ContentEventPayload.prototype.setKeydata = function (value) { }; proto.feapi.ContentEventPayload.prototype.clearKeydata = function () { - this.setKeydata(undefined); + this.setKeydata(); }; /** @@ -3871,7 +3871,7 @@ proto.feapi.SignalEventPayload.prototype.setEvent = function (value) { }; proto.feapi.SignalEventPayload.prototype.clearEvent = function () { - this.setEvent(undefined); + this.setEvent(); }; /** @@ -5378,7 +5378,7 @@ proto.feapi.BackendAmbientStatusPayload.prototype.setBackendambientstatus = proto.feapi.BackendAmbientStatusPayload.prototype.clearBackendambientstatus = function () { - this.setBackendambientstatus(undefined); + this.setBackendambientstatus(); }; /** @@ -7461,7 +7461,7 @@ proto.feapi.SendAddressPayload.prototype.setAddress = function (value) { }; proto.feapi.SendAddressPayload.prototype.clearAddress = function () { - this.setAddress(undefined); + this.setAddress(); }; /**