summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:50:39 +0100
committerGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:55:18 +0100
commit058a127a6a5e15f39def341e67a7cd6418882c34 (patch)
tree1d8d3bef54d90bcb991312fc2bc33be7e752f2e0 /system/libraries/Upload.php
parent3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff)
Clean elses
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 9e8389480..c6771b584 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -678,10 +678,8 @@ class CI_Upload {
$this->set_error('upload_bad_filename', 'debug');
return FALSE;
}
- else
- {
- return $new_filename;
- }
+
+ return $new_filename;
}
// --------------------------------------------------------------------