mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
lint
This commit is contained in:
parent
68f20ac903
commit
c29fe61ad1
24 changed files with 1242 additions and 50 deletions
|
|
@ -31,7 +31,7 @@ class UploadController extends BaseController {
|
|||
|
||||
try {
|
||||
$result = $this->uploadProvider->upload($key, $red, $blu, $name, $demoFile);
|
||||
if ($result === 'Invalid key') {
|
||||
if ('Invalid key' === $result) {
|
||||
\Flight::response()->status(401)->write($result)->send();
|
||||
} else {
|
||||
echo $result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue