From 5ac128553426b2d2e9d6ee1dc179ed02dc63595b Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 21 Feb 2021 14:15:48 +1300 Subject: [PATCH] api: lint --- api/src/ppman/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/ppman/package.js b/api/src/ppman/package.js index e45877a..ebccd7f 100644 --- a/api/src/ppman/package.js +++ b/api/src/ppman/package.js @@ -73,7 +73,7 @@ class Package { await this.repo.import_keys(); logger.debug('Validating signatutes'); - if(this.signature != "") + if(this.signature != '') await new Promise((resolve,reject)=>{ const gpgspawn = cp.spawn('gpg', ['--verify', '-', pkgpath], { stdio: ['pipe', 'ignore', 'ignore'] @@ -91,7 +91,7 @@ class Package { }); else - logger.warn("Package does not contain a signature - allowing install, but proceed with caution") + logger.warn('Package does not contain a signature - allowing install, but proceed with caution'); logger.debug(`Extracting package files from archive ${pkgfile} in to ${this.install_path}`); await new Promise((resolve, reject)=>{