Skip to content

Commit

Permalink
Refactor InitOptionalParameters to remove unused Path parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
IceOnly committed Dec 15, 2024
1 parent 64c59a4 commit 192a487
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 192a487

Please sign in to comment.