Skip to content

Commit

Permalink
style(generic): remove unnecessary eslint pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 24, 2017
1 parent 7ea5af8 commit 23d1aa9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
});

Expand Down
1 change: 0 additions & 1 deletion src/installers/darwin/dmg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/publishers/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion src/util/move-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 23d1aa9

Please sign in to comment.