cc-4105: removed useless comments
This commit is contained in:
parent
eb00b5cbb3
commit
aa298453b7
2 changed files with 5 additions and 21 deletions
|
@ -460,8 +460,8 @@ class ApiController extends Zend_Controller_Action
|
|||
// path already exist
|
||||
if ($file->getFileExistsFlag()) {
|
||||
// file marked as exists
|
||||
$this->view->error = "File already exists in Airtime.";
|
||||
return;
|
||||
# TODO : jsonify all the error messages mang
|
||||
return "File already exists in Airtime.";
|
||||
} else {
|
||||
// file marked as not exists
|
||||
$file->setFileExistsFlag(true);
|
||||
|
@ -475,8 +475,7 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
//File is not in database anymore.
|
||||
if (is_null($file)) {
|
||||
$this->view->error = "File does not exist in Airtime.";
|
||||
return;
|
||||
return "File does not exist in Airtime.";
|
||||
}
|
||||
//Updating a metadata change.
|
||||
else {
|
||||
|
@ -488,8 +487,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$file = Application_Model_StoredFile::RecallByMd5($md5);
|
||||
|
||||
if (is_null($file)) {
|
||||
$this->view->error = "File doesn't exist in Airtime.";
|
||||
return;
|
||||
return "File doesn't exist in Airtime.";
|
||||
}
|
||||
else {
|
||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||
|
@ -503,8 +501,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$file = Application_Model_StoredFile::RecallByFilepath($filepath);
|
||||
|
||||
if (is_null($file)) {
|
||||
$this->view->error = "File doesn't exist in Airtime.";
|
||||
return;
|
||||
return "File doesn't exist in Airtime.";
|
||||
}
|
||||
else {
|
||||
$file->deleteByMediaMonitor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue