Remove explicit catch that did nothing

This commit is contained in:
Daniel G. Taylor
2013-03-25 07:49:25 -07:00
parent 3c0344b954
commit 1643f7df7a
2 changed files with 2 additions and 6 deletions

View File

@@ -91,7 +91,7 @@
};
addHistory = function(repl, filename) {
var buffer, e, fd, size, stat;
var buffer, fd, size, stat;
if (filename == null) {
filename = path.join(process.env.HOME, '.coffee_history');
}
@@ -104,9 +104,7 @@
repl.rli.history = buffer.toString().split('\n').reverse();
repl.rli.history.shift();
repl.rli.historyIndex = -1;
} catch (_error) {
e = _error;
}
} catch (_error) {}
fd = fs.openSync(filename, 'a');
repl.rli.addListener('line', function(code) {
if (code && code.length && code !== '.history') {

View File

@@ -92,8 +92,6 @@ addHistory = (repl, filename = path.join(process.env.HOME, '.coffee_history')) -
repl.rli.history = buffer.toString().split('\n').reverse()
repl.rli.history.shift()
repl.rli.historyIndex = -1
catch e
# Fail silently
fd = fs.openSync filename, 'a'