mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
chore: lint & fix js files
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
var pkg = require('../package.json');
|
||||
var spawn = require('child_process').spawn;
|
||||
var os = require('os');
|
||||
var path = require('path');
|
||||
|
||||
function spawner(args) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
@@ -73,6 +73,7 @@ function normalize(all) {
|
||||
};
|
||||
|
||||
all.releases.forEach(function (rel) {
|
||||
/* jshint maxcomplexity:25 */
|
||||
rel.version = rel.version.replace(/^v/i, '');
|
||||
if (!rel.name) {
|
||||
rel.name = rel.download.replace(/.*\//, '');
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = function (request) {
|
||||
|
||||
// Ex: aarch64-macos => ['aarch64', 'macos']
|
||||
let parts = platform.split('-');
|
||||
let arch = parts[0];
|
||||
//let arch = parts[0];
|
||||
let os = parts[1];
|
||||
if (parts.length > 2) {
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user