소스 검색

feat: commit code

mrxiaozhuox 3 년 전
부모
커밋
91907d21d2
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/cli/translate/mod.rs

+ 0 - 2
src/cli/translate/mod.rs

@@ -44,7 +44,6 @@ impl Translate {
         let contents;
         let temp = input.map(|f| {
             std::fs::read_to_string(&f).unwrap_or_else(|e| {
-                // panic!("Could not read input file: {}", e)
                 log::error!("Cloud not read input file: {}.", e);
                 exit(0);
             })
@@ -54,7 +53,6 @@ impl Translate {
                 contents = s;
             } else {
                 if atty::is(atty::Stream::Stdin) {
-                    // panic!("No input file, source, or stdin to translate from");
                     log::error!("No input file, source, or stdin to translate from.");
                     exit(0);
                 }