Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromkpdecker/jsdiff

Commit88bafde

Browse files
pirannakpdecker
authored andcommitted
Use explicit undefined
1 parent09b7efe commit88bafde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/patch/apply.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ export function applyPatch(source, uniDiff, options = {}) {
103103

104104
letiterator=distanceIterator(toPos,minLine,maxLine);
105105

106-
for(;localOffset!=undefined;localOffset=iterator()){
106+
for(;localOffset!==undefined;localOffset=iterator()){
107107
if(hunkFits(hunk,toPos+localOffset)){
108108
hunk.offset=offset+=localOffset;
109109
break;
110110
}
111111
}
112112

113-
if(localOffset==undefined){
113+
if(localOffset===undefined){
114114
returnfalse;
115115
}
116116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp