mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Remove explicit catch that did nothing
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user