Skip to content

Commit

Permalink
🚀perf: 移除不必要的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
asnipera committed Oct 13, 2022
1 parent 692f9a5 commit d93a054
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/commands/extract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const extractDir = async (dirPath) => {
const translateTargets = findAllChineseText(dirPath);

if (translateTargets.length === 0) {
console.log(`${dirPath} 没有发现可替换的文案!`);
return;
}
const translatedTargets = await translateFiles(translateTargets);
Expand Down
1 change: 0 additions & 1 deletion src/commands/replace/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const replaceDir = async (dirPath, langFile) => {
const translateTargets = findAllChineseText(dirPath);

if (translateTargets.length === 0) {
console.log(`${dirPath} 没有发现可替换的文案!`);
return;
}

Expand Down

0 comments on commit d93a054

Please sign in to comment.