Skip to content

Commit

Permalink
remove ?? state
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jul 20, 2023
1 parent 5e344b8 commit 926551e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void ProcessObjectCreation(ProgramState state, IObjectCreationOperationW

protected override ProgramState ProcessInvocation(ProgramState state, IInvocationOperationWrapper invocation)
{
state = base.ProcessInvocation(state, invocation) ?? state;
state = base.ProcessInvocation(state, invocation);
return invocation.TargetMethod.Is(KnownType.System_Text_Encoding, nameof(Encoding.GetBytes)) && FindInvocationArgument(state, invocation.Arguments, KnownType.System_String)?.AsLiteral() is { }
? state.SetOperationConstraint(invocation, ByteCollectionConstraint.CryptographicallyWeak)
: state;
Expand Down

0 comments on commit 926551e

Please sign in to comment.