Skip to content
Permalink
Browse files

style(generic): remove unnecessary eslint pragmas

  • Loading branch information
malept committed Jan 24, 2017
1 parent 7ea5af8 commit 23d1aa9f471395e36951d9062a9c20b8c4d98dd5
Showing with 2 additions and 4 deletions.
  1. +1 −1 src/api/publish.js
  2. +0 −1 src/installers/darwin/dmg.js
  3. +1 −1 src/publishers/github.js
  4. +0 −1 src/util/move-app.js
@@ -60,7 +60,7 @@ export default async (providedOptions = {}) => {
`electron-forge-publisher-${target}`,
]);
if (!publisher) {
throw `Could not find a publish target with the name: ${target}`; // eslint-disable-line
throw `Could not find a publish target with the name: ${target}`;
}
});

@@ -17,7 +17,6 @@ export default async (filePath, installSpinner) => {
const volumePath = path.resolve('/Volumes', targetMount.mountPath);
const appName = (await fs.readdir(volumePath)).find(file => file.endsWith('.app'));
if (!appName) {
// eslint-disable-next-line no-throw-literal
throw 'Failed to find .app file in DMG';
}
const appPath = path.resolve(volumePath, appName);
@@ -21,7 +21,7 @@ export default async (artifacts, packageJSON, forgeConfig, authToken, tag) => {
per_page: 100,
})).find(testRelease => testRelease.tag_name === (tag || `v${packageJSON.version}`));
if (!release) {
throw { code: 404 }; // eslint-disable-line
throw { code: 404 };
}
} catch (err) {
if (err.code === 404) {
@@ -21,7 +21,6 @@ export default async (appPath, targetApplicationPath, spinner, copyInstead = fal
message: `The application "${path.basename(targetApplicationPath)}" appears to already exist in /Applications. Do you want to replace it?`,
});
if (!confirm) {
// eslint-disable-next-line no-throw-literal
throw 'Installation stopped by user';
} else {
spinner.start();

0 comments on commit 23d1aa9

Please sign in to comment.
You can’t perform that action at this time.