From 84ac77f499392d4f4ef7ffbe883d566b157ee768 Mon Sep 17 00:00:00 2001 From: ray-1337 <33544674+ray-1337@users.noreply.github.com> Date: Mon, 11 Apr 2022 22:41:18 +0200 Subject: [PATCH] remove unneeded property --- src/methods/disable.js | 2 +- src/methods/enable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/methods/disable.js b/src/methods/disable.js index 928186e..024c98e 100644 --- a/src/methods/disable.js +++ b/src/methods/disable.js @@ -6,7 +6,7 @@ const promisifiedExec = promisify(exec); * Disable ufw. (root/sudo access is mandatory) * @returns {Promise} Returns a boolean. */ -module.exports.disable = async function() { +module.exports = async function() { try { let res = await promisifiedExec(`echo "y" | sudo ufw disable`); diff --git a/src/methods/enable.js b/src/methods/enable.js index 799e91f..74c4011 100644 --- a/src/methods/enable.js +++ b/src/methods/enable.js @@ -6,7 +6,7 @@ const promisifiedExec = promisify(exec); * Enable ufw. (root/sudo access is mandatory) * @returns {Promise} Returns a boolean. */ -module.exports.enable = async function() { +module.exports = async function() { try { // https://serverfault.com/a/790150 let res = await promisifiedExec(`echo "y" | sudo ufw enable`);