()
| 896 | var currentIndex = 0; |
| 897 | |
| 898 | function processIndex() { |
| 899 | var index = uniDiff[currentIndex++]; |
| 900 | |
| 901 | if (!index) { |
| 902 | return options.complete(); |
| 903 | } |
| 904 | |
| 905 | options.loadFile(index, function (err, data) { |
| 906 | if (err) { |
| 907 | return options.complete(err); |
| 908 | } |
| 909 | |
| 910 | var updatedContent = applyPatch(data, index, options); |
| 911 | options.patched(index, updatedContent, function (err) { |
| 912 | if (err) { |
| 913 | return options.complete(err); |
| 914 | } |
| 915 | |
| 916 | processIndex(); |
| 917 | }); |
| 918 | }); |
| 919 | } |
| 920 | |
| 921 | processIndex(); |
| 922 | } |
no test coverage detected