Skip to content

Commit

Permalink
fix: handle filter=null
Browse files Browse the repository at this point in the history
  • Loading branch information
iadonkey authored Jan 17, 2024
1 parent b80d930 commit ce7b965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwinpackShared/TwinpackServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public async Task PullAsync(bool skipInternalPackages = false, IEnumerable<Confi
(x.Branch == null || x?.Branch == package?.Branch)))
continue;

if (!filter.Any(x => x?.Name == package?.Name && x?.Version == package?.Version &&
if (filter != null && !filter.Any(x => x?.Name == package?.Name && x?.Version == package?.Version &&
(x.Target == null || x?.Target == package?.Target) &&
(x.Configuration == null || x?.Configuration == package?.Configuration) &&
(x.Branch == null || x?.Branch == package?.Branch)))
Expand Down

0 comments on commit ce7b965

Please sign in to comment.