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 97b9d99503
commit 853cf20e6e

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.');
}