Skip to content

Commit

Permalink
Update src/main/java/gyro/aws/wafv2/FieldMatchCookiePatternResource.java
Browse files Browse the repository at this point in the history
Co-authored-by: Harshil Sanjay Jain <[email protected]>
  • Loading branch information
deepanjan90 and harjain99 authored Mar 4, 2024
1 parent 55cce54 commit a541806
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public void copyFrom(CookieMatchPattern model) {
CookieMatchPattern toCookieMatchPattern() {
return CookieMatchPattern.builder()
.all(getAll() != null && getAll() ? All.builder().build() : null)
.excludedCookies(getExcludedCookies())
.includedCookies(getIncludedCookies())
.excludedCookies(getExcludedCookies().isEmpty() ? null : getExcludedCookies())
.includedCookies(getIncludedCookies().isEmpty() ? null : getIncludedCookies())
.build();
}

Expand Down

0 comments on commit a541806

Please sign in to comment.