From 192a487faa5b4898c50ca0647e02bd738863f099 Mon Sep 17 00:00:00 2001 From: Thomas Williamson Date: Sun, 15 Dec 2024 16:13:47 +0100 Subject: [PATCH] Refactor InitOptionalParameters to remove unused Path parameter --- .../app/src/FileShareConnectorImpl.Codeunit.al | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Apps/W1/File - Azure File Service Connector/app/src/FileShareConnectorImpl.Codeunit.al b/Apps/W1/File - Azure File Service Connector/app/src/FileShareConnectorImpl.Codeunit.al index d69c86f9d3..b74c05ec31 100644 --- a/Apps/W1/File - Azure File Service Connector/app/src/FileShareConnectorImpl.Codeunit.al +++ b/Apps/W1/File - Azure File Service Connector/app/src/FileShareConnectorImpl.Codeunit.al @@ -415,9 +415,8 @@ codeunit 80200 "File Share Connector Impl." implements "File System Connector" exit(Path + ChildPath); end; - local procedure InitOptionalParameters(var Path: Text; var FilePaginationData: Codeunit "File Pagination Data"; var AFSOptionalParameters: Codeunit "AFS Optional Parameters") + local procedure InitOptionalParameters(var FilePaginationData: Codeunit "File Pagination Data"; var AFSOptionalParameters: Codeunit "AFS Optional Parameters") begin - AFSOptionalParameters.Prefix(Path); AFSOptionalParameters.MaxResults(500); AFSOptionalParameters.Marker(FilePaginationData.GetMarker()); end; @@ -438,7 +437,7 @@ codeunit 80200 "File Share Connector Impl." implements "File System Connector" begin InitFileClient(AccountId, AFSFileClient); CheckPath(Path); - InitOptionalParameters(Path, FilePaginationData, AFSOptionalParameters); + InitOptionalParameters(FilePaginationData, AFSOptionalParameters); AFSOperationResponse := AFSFileClient.ListDirectory(Path, AFSDirectoryContent, AFSOptionalParameters); ValidateListingResponse(FilePaginationData, AFSOperationResponse); end;