mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
FIX codegen, again
This commit is contained in:
parent
01bc5a990b
commit
e86184fcd0
1 changed files with 7 additions and 5 deletions
|
@ -78,11 +78,13 @@ pub fn ensure_files_contents<'a>(
|
|||
let mut err_count = 0;
|
||||
|
||||
for (path, contents) in files_and_contents {
|
||||
let old_contents = fs::read_to_string(path).unwrap();
|
||||
|
||||
if normalize_newlines(&old_contents) == normalize_newlines(contents) {
|
||||
// File is already up to date.
|
||||
continue;
|
||||
if path.exists() {
|
||||
let old_contents = fs::read_to_string(path).unwrap();
|
||||
|
||||
if normalize_newlines(&old_contents) == normalize_newlines(contents) {
|
||||
// File is already up to date.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
err_count += 1;
|
||||
|
|
Loading…
Reference in a new issue