summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-12-27 18:49:03 +0100
committerAndrey Andreev <narf@devilix.net>2017-12-27 18:50:15 +0100
commitfbe4d79ca0a70f404dce628d66deeaa3d90a2225 (patch)
tree4626010d3821b8c0c3e10676ea88dfda953ad47e /system/libraries/Upload.php
parent20d9b0a9c03955da0010a3df91adcd9b8e6e7d58 (diff)
Merge pull request #5367 from carusogabriel/clean-elses
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 0ad8dd375..3b450c561 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;
}
// --------------------------------------------------------------------