Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Sep 8, 2023
1 parent c7289f1 commit 93b590f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/RepoM.Api/IO/Methods/IsNullMethod.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace RepoM.Api.IO.Methods;

using System;
using System.Linq;
using ExpressionStringEvaluator.Methods;
using JetBrains.Annotations;

Expand All @@ -15,6 +14,6 @@ public bool CanHandle(string method)

public object? Handle(string method, params object?[] args)
{
return args == null || args.Any(arg => arg is null);
return args == null || Array.Exists(args, arg => arg is null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ public IEnumerable<RepositoryActionBase> CreateActions(Repository repository)
using IDisposable d2 = EnvironmentVariableStore.Set(repositoryEnvVars ?? new Dictionary<string, string>());

// load variables global
foreach (ActionsCollection actionsCollection in ((IEnumerable<ActionsCollection>?)actions) ?? Array.Empty<ActionsCollection>())
IEnumerable<ActionsCollection> iterateOverActions = actions != null ? actions : Array.Empty<ActionsCollection>();

foreach (ActionsCollection actionsCollection in iterateOverActions)
{
using IDisposable d3 = RepoMVariableProviderStore.Push(EvaluateVariables(actionsCollection.Variables, repository));

Expand Down

0 comments on commit 93b590f

Please sign in to comment.