Skip to content

Commit

Permalink
Fixed WikiUpdaterTask@2 ##[error]TypeError: contents.replace is not a…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfennell authored and Stan Stanislaus committed Dec 5, 2023
1 parent 75528e1 commit 2f96f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extensions/WikiUpdater/WikiUpdaterTask/src/GitWikiTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ if (dataIsFile === true) {
if (fixLineFeeds) {
contents = fs.readFileSync(sourceFile, "utf8");
} else {
contents = fs.readFileSync(sourceFile);
// we read as a buffer and convert to string as we don't know the encoding
contents = fs.readFileSync(sourceFile).toString();
}
} else {
logError(`Cannot find the file ${sourceFile}`);
Expand Down

0 comments on commit 2f96f6f

Please sign in to comment.