kopia lustrzana https://github.com/c9/core
Fix two spurious self-comparisons.
rodzic
edfe3b0ff7
commit
f721e110fe
|
@ -49,7 +49,7 @@ function IndexCache(doc) {
|
|||
|
||||
if (check) {
|
||||
var slowPos = doc.indexToPositionSlow(index);
|
||||
if (slowPos.row !== pos.row && slowPos.column !== slowPos.column)
|
||||
if (slowPos.row !== pos.row && slowPos.column !== pos.column)
|
||||
reportError("Inconsistency in indexToPosition");
|
||||
return slowPos;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ handler.init = function(options, callback) {
|
|||
};
|
||||
|
||||
handler.invoke = function(path, doc, ast, options, callback) {
|
||||
options.mode == options.mode || "stdin";
|
||||
options.mode = options.mode || "stdin";
|
||||
if (options.overrideLine != null) {
|
||||
var lines = doc.toString().split(/\r\n|\n|\r/);
|
||||
if (lines[options.overrideLineRow] !== options.overrideLine) {
|
||||
|
|
Ładowanie…
Reference in New Issue