Merge pull request #3783 from thelounge/xpaw/uninstall

Fix not being able to uninstall packages
This commit is contained in:
Pavel Djundik 2020-02-27 21:06:42 +02:00 committed by GitHub
commit d2e4f56219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ program
const path = require("path");
const packagesConfig = path.join(Helper.getPackagesPath(), "package.json");
const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")).dependencies;
const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8"));
if (
!packages.dependencies ||