mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
remove uneeded check
This commit is contained in:
@@ -607,9 +607,7 @@ Now we can wire up the trait and the service inside the **NoteController**:
|
||||
* @param string $content
|
||||
*/
|
||||
public function create($title, $content) {
|
||||
return $this->handleNotFound(function () use ($title, $content) {
|
||||
return $this->service->create($title, $content, $this->userId);
|
||||
});
|
||||
return $this->service->create($title, $content, $this->userId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user