Skip to content

Commit

Permalink
Refactor dryRunPrint function to remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
dies committed May 27, 2024
1 parent 5e3a9b0 commit 1b2abe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/harvest.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ function dryRunPrint(strings) {

let data = [];
for (const string of stringsWithAiContext) {
// data.push([string.identifier, string.text, string.aiContext.join('\n')]);
data.push([string.identifier, string.text, `\n${stringsWithAiContext.length} strings would be updated. Please be aware that an LLM model may return different results for the same input next time you run the tool.${stringsWithAiContext.length} strings would be updated. Please be aware that an LLM model may return different results for the same input next time you run the tool.\n`]);
data.push([string.identifier, string.text, string.aiContext.join('\n')]);
}

if (data.length < 1) {
Expand Down

0 comments on commit 1b2abe2

Please sign in to comment.