Skip to content

Commit f302c73

Browse files
committed
introduce noplanman suggestion
1 parent 0567c8c commit f302c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Conversation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public function __construct($user_id, $chat_id, $command = null)
8080
$this->chat_id = $chat_id;
8181
$this->command = $command;
8282

83-
$this->command_is_provided = (is_null($command)) ? false : true;
83+
$this->command_is_provided = ($command !== null);
8484

8585
//Try to load an existing conversation if possible
86-
if (!$this->load() && !is_null($command)) {
86+
if (!$this->load() && $this->command_is_provided) {
8787
//A new conversation start
8888
$this->start();
8989
}

0 commit comments

Comments
 (0)