From 5b7904f0547bca90a4e947dda5271c5c78af96da Mon Sep 17 00:00:00 2001 From: Shannon Warren Date: Tue, 17 Oct 2017 23:09:48 -0500 Subject: [PATCH] remove complexity --- src/index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index.php b/src/index.php index 4ab6778..b179c83 100644 --- a/src/index.php +++ b/src/index.php @@ -7,12 +7,10 @@ define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/')); } -if (file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php')) -{ - include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php'; -} -else +if (!file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php')) { echo '[105] Missing version directory'; exit(105); } + +include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php';