Skip to content

Commit

Permalink
Fixing some warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
askpt committed Mar 28, 2024
1 parent b0dd4f5 commit d31f23e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/OpenFeature/EventExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private void InvokeEventHandler(EventHandlerDelegate eventHandler, Event e)
}
catch (Exception exc)
{
this.Logger?.LogError("Error running handler: " + exc);
this.Logger.LogError("Error running handler: " + exc);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/OpenFeature/Model/Value.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public Value(Object value)
/// Value will be null if it isn't a integer
/// </summary>
/// <returns>Value as int</returns>
public int? AsInteger => this.IsNumber ? (int?)Convert.ToInt32((double?)this._innerValue) : null;
public int? AsInteger => this.IsNumber ? Convert.ToInt32((double?)this._innerValue) : null;

/// <summary>
/// Returns the underlying bool value
Expand Down
7 changes: 2 additions & 5 deletions src/OpenFeature/Providers/Memory/Flag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ namespace OpenFeature.Providers.Memory
/// <summary>
/// Flag representation for the in-memory provider.
/// </summary>
public interface Flag
{

}
public interface Flag;

/// <summary>
/// Flag representation for the in-memory provider.
Expand All @@ -38,7 +35,7 @@ public Flag(Dictionary<string, T> variants, string defaultVariant, Func<Evaluati

internal ResolutionDetails<T> Evaluate(string flagKey, T _, EvaluationContext? evaluationContext)
{
T? value = default;
T? value;
if (this.ContextEvaluator == null)
{
if (this.Variants.TryGetValue(this.DefaultVariant, out value))
Expand Down

0 comments on commit d31f23e

Please sign in to comment.