Skip to content

Commit

Permalink
Fixing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmccloskey committed Nov 28, 2023
1 parent 9f84d6e commit 702ae3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/meta/cp4m/message/FBMessengerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ private FBMessengerConfig(
appSecret != null && !appSecret.isBlank(), "app_secret cannot be blank");
Preconditions.checkArgument(
pageAccessToken != null && !pageAccessToken.isBlank(), "page_access_token cannot be blank");
Preconditions.checkArgument(
owningPageID != null && !owningPageID.isBlank(), "owning_page_id cannot be blank");

this.name = name;
this.verifyToken = verifyToken;
this.appSecret = appSecret;
this.pageAccessToken = pageAccessToken;
this.owningPageID = owningPageID;
this.owningPageID = owningPageID == null || owningPageID.isBlank() ? "-1" : owningPageID;
}

public static FBMessengerConfig of(String verifyToken, String appSecret, String pageAccessToken, String owningPageID) {
Expand Down

0 comments on commit 702ae3e

Please sign in to comment.