Browse Source

return boolean normally instead

develop
ray-1337 3 years ago
parent
commit
9ffd5b5a64
  1. 5
      src/methods/disable.js
  2. 5
      src/methods/enable.js

5
src/methods/disable.js

@ -13,12 +13,7 @@ module.exports = async function() {
if (res.stderr) throw new Error(res.stderr);
if (res.stdout) {
if (res.stdout == "Firewall stopped and disabled on system startup") {
return true;
} else {
console.log(res.stdout);
return false;
};
} else {
return false;
};

5
src/methods/enable.js

@ -14,12 +14,7 @@ module.exports = async function() {
if (res.stderr) throw new Error(res.stderr);
if (res.stdout) {
if (res.stdout == "Firewall is active and enabled on system startup") {
return true;
} else {
console.log(res.stdout);
return false;
};
} else {
return false;
};

Loading…
Cancel
Save