Skip to content

Commit

Permalink
doc: update example in repl.md
Browse files Browse the repository at this point in the history
Delete unused method call.

PR-URL: #12685
Refs: #6171
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
vsemozhetbyt committed Apr 28, 2017
1 parent 8092fb0 commit d8f8096
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ const replServer = repl.start({prompt: '> '});
replServer.defineCommand('sayhello', {
help: 'Say hello',
action(name) {
this.lineParser.reset();
this.bufferedCommand = '';
console.log(`Hello, ${name}!`);
this.displayPrompt();
Expand Down

0 comments on commit d8f8096

Please sign in to comment.