Skip to content

Commit

Permalink
[~] Removed unnessessary parameters(owner)
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidProgramming committed Dec 2, 2024
1 parent eb8e778 commit ddcc1d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions roles/lib/files/FWO.Services/ModellingVarianceAnalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ModellingVarianceAnalysis(ApiConnection apiConnection, ExtStateHand
private List<WfReqElement> unchangedGroupMembersDuringCreate = [];
private List<WfReqElement> unchangedGroupMembers = [];

public async Task<List<WfReqTask>> AnalyseModelledConnections(List<ModellingConnection> Connections, FwoOwner owner)
public async Task<List<WfReqTask>> AnalyseModelledConnections(List<ModellingConnection> Connections)
{
// later: get rules + compare, bundle requests
managements = await apiConnection.SendQueryAsync<List<Management>>(DeviceQueries.getManagementNames);
Expand All @@ -47,7 +47,7 @@ public async Task<List<WfReqTask>> AnalyseModelledConnections(List<ModellingConn
}
}

await GetProductionState(owner);
await GetProductionState();

TaskList = [];
AccessTaskList = [];
Expand All @@ -62,7 +62,7 @@ public async Task<List<WfReqTask>> AnalyseModelledConnections(List<ModellingConn
AnalyseAppServers(conn);
AnalyseServiceGroups(conn, mgt);
AnalyseServices(conn);
await AnalyseAppZone(mgt, owner);
await AnalyseAppZone(mgt);
if (elements.Count > 0)
{
Dictionary<string, string>? addInfo = new() { { AdditionalInfoKeys.ConnId, conn.Id.ToString() } };
Expand Down Expand Up @@ -103,7 +103,7 @@ private string ConstructComment(ModellingConnection conn)
return comment;
}

private async Task GetProductionState(FwoOwner owner)
private async Task GetProductionState()
{
try
{
Expand Down Expand Up @@ -244,7 +244,7 @@ private void AnalyseAppRole(ModellingAppRole appRole, Management mgt, bool isSou
});
}

private async Task AnalyseAppZone(Management mgt, FwoOwner owner)
private async Task AnalyseAppZone(Management mgt)
{
if (!userConfig.CreateAppZones)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
if (!await GetActTicketStatus())
{
ModellingVarianceAnalysis varianceAnalysis = new(apiConnection, extStateHandler, userConfig, SelectedApp, DisplayMessageInUi);
TaskList = await varianceAnalysis.AnalyseModelledConnections(Connections, SelectedApp);
TaskList = await varianceAnalysis.AnalyseModelledConnections(Connections);
}
}
catch (Exception exception)
Expand Down

0 comments on commit ddcc1d2

Please sign in to comment.