| @@ -35,15 +35,9 @@ | ||
| 35 | 35 | public function get_activate_link() { |
| 36 | 36 | if ( $this->is_installed() && $this->is_active() ) { |
| 37 | 37 | return ''; |
| 38 | 38 | } |
| 39 | - | |
| 40 | - if ( $this->is_installed() ) { | |
| 41 | - $url = $this->activate_url(); | |
| 42 | - } else { | |
| 43 | - $url = $this->install_url(); | |
| 44 | - } | |
| 45 | - return $url; | |
| 39 | + return $this->is_installed() ? $this->activate_url() : $this->install_url(); | |
| 46 | 40 | } |
| 47 | 41 | |
| 48 | 42 | /** |
| 49 | 43 | * @return bool |