Commit 88555856 authored by Armando Lüscher's avatar Armando Lüscher

Remove unused $command_is_provided variable.

parent 291b90f7
...@@ -60,13 +60,6 @@ class Conversation ...@@ -60,13 +60,6 @@ class Conversation
*/ */
protected $command; protected $command;
/**
* Command has been provided
*
* @var string
*/
protected $command_is_provided;
/** /**
* Conversation contructor to initialize a new conversation * Conversation contructor to initialize a new conversation
* *
...@@ -80,10 +73,8 @@ class Conversation ...@@ -80,10 +73,8 @@ class Conversation
$this->chat_id = $chat_id; $this->chat_id = $chat_id;
$this->command = $command; $this->command = $command;
$this->command_is_provided = ($command !== null);
//Try to load an existing conversation if possible //Try to load an existing conversation if possible
if (!$this->load() && $this->command_is_provided) { if (!$this->load() && $command !== null) {
//A new conversation start //A new conversation start
$this->start(); $this->start();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment