Remove unreliable check for git installed

It will fail anyway if not installed
This commit is contained in:
Cohee 2023-10-29 23:46:13 +02:00
parent 91862bff43
commit ea36d34942
1 changed files with 0 additions and 6 deletions

View File

@ -62,12 +62,6 @@ function registerEndpoints(app, jsonParser) {
* @returns {void}
*/
app.post('/api/extensions/install', jsonParser, async (request, response) => {
const gitExists = commandExistsSync('git');
if (!gitExists) {
return response.status(400).send('Server Error: git is not installed on the system.');
}
if (!request.body.url) {
return response.status(400).send('Bad Request: URL is required in the request body.');
}