Skip to content

Commit

Permalink
Remove current priority null check
Browse files Browse the repository at this point in the history
  • Loading branch information
cindy-peng committed May 7, 2024
1 parent ae60311 commit 43d69d0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public void setCurrentContext(Context context) {
* context if HttpRequest in the new context is empty .
*/
public void setCurrentContext(Context context, ContextPriority priority) {
if ((currentPriority.get() == null || priority.compareTo(currentPriority.get()) >= 0)
&& context != null) {
if (priority != null && priority.compareTo(currentPriority.get()) >= 0 && context != null) {
Context.Builder combinedContextBuilder =
Context.newBuilder()
.setTraceId(context.getTraceId())
Expand Down

0 comments on commit 43d69d0

Please sign in to comment.