Skip to content

Commit

Permalink
Standardize boolean values and update .env file pattern
Browse files Browse the repository at this point in the history
Replace YES/NO with true/false for boolean variables in .env file.
Ensure consistency across the codebase by removing the need for parseBooleanFromText.
  • Loading branch information
Hugo Caumo authored and Hugo Caumo committed Dec 23, 2024
1 parent 4c658d7 commit f9d227c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class TwitterPostClient {

if (
this.runtime.getSetting("POST_IMMEDIATELY") != null &&
this.runtime.getSetting("POST_IMMEDIATELY") != ""
this.runtime.getSetting("POST_IMMEDIATELY") !== ""
) {
postImmediately = parseBooleanFromText(
this.runtime.getSetting("POST_IMMEDIATELY")
);
// Retrieve setting, default to false if not set or if the value is not "true"
postImmediately = this.runtime.getSetting("POST_IMMEDIATELY") === "true" || false;

}

if (postImmediately) {
Expand Down

0 comments on commit f9d227c

Please sign in to comment.