Skip to content

Commit

Permalink
Issue deployd#16 - fixed global-require eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saloni.kathuria committed Oct 26, 2019
1 parent 77dd9c2 commit 7018e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/cli/keygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
/**
* Generate a key
*/
const Keys = require('../keys');

const keygen = function () {
const Keys = require('../keys'),
keys = new Keys();
const keys = new Keys();

keys.create((err, key) => {
if (err) return console.error(err);
Expand Down
6 changes: 4 additions & 2 deletions lib/cli/showkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
/**
* Show current key
*/

const Keys = require('../keys');

const showkey = function () {
const Keys = require('../keys'),
keys = new Keys();
const keys = new Keys();

keys.getLocal((err, key) => {
if (err) return console.error(err);
Expand Down

0 comments on commit 7018e20

Please sign in to comment.