Skip to content

Commit 9260aa6

Browse files
marceloinacioMax Presman
authored andcommitted
ShouldStore default True
1 parent e4dcd96 commit 9260aa6

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎src/main/java/com/pubnub/api/endpoints/pubsub/Publish.java‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@ protected final Call<List<Object>> doWork(Map<String, String> params) throws Pub
8686
}
8787
}
8888

89-
if (shouldStore != null) {
90-
if (shouldStore) {
91-
params.put("store", "1");
92-
if (ttl != null) {
93-
params.put("ttl", String.valueOf(ttl));
94-
}
95-
} else {
96-
params.put("store", "0");
89+
if (shouldStore) {
90+
params.put("store", "1");
91+
if (ttl != null) {
92+
params.put("ttl", String.valueOf(ttl));
9793
}
94+
} else {
95+
params.put("store", "0");
9896
}
9997

10098
params.put("seqn", String.valueOf(publishSequenceManager.getNextSequence()));

0 commit comments

Comments
 (0)