Skip to content

Commit

Permalink
Fix coderabbit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mlqn committed Jan 16, 2025
1 parent 9c6dbb9 commit 7ca7686
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public class ComponentIdChangedLayoutsHandler : INotificationHandler<ComponentId
private readonly IFileSyncHandlerExecutor _fileSyncHandlerExecutor;

public ComponentIdChangedLayoutsHandler(IAltinnGitRepositoryFactory altinnGitRepositoryFactory,
IFileSyncHandlerExecutor fileSyncHandlerExecutor,
IAppDevelopmentService appDevelopmentService)
IFileSyncHandlerExecutor fileSyncHandlerExecutor)
{
_altinnGitRepositoryFactory = altinnGitRepositoryFactory;
_fileSyncHandlerExecutor = fileSyncHandlerExecutor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ private async Task<bool> UpdateLayoutReferences(AltinnAppGitRepository altinnApp
}

string componentId = component["id"]?.GetValue<string>();
if (string.IsNullOrEmpty(componentId))
{
continue;
}

bool isComponentDeleted = deletedComponentIdsFromCurrentLayoutSet.Contains(componentId);

if (isComponentDeleted)
Expand Down

0 comments on commit 7ca7686

Please sign in to comment.