File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -107,20 +107,20 @@ async def _patch(
107107 destination_content = await file .read ()
108108 async with aiofiles .open (patch ) as file :
109109 patch_content = await file .read ()
110- if destination_content != base_content :
111- LOGGER .warning (
112- "Destination file '%s' is different than it's base '%s'." ,
113- destination ,
114- base ,
115- )
116- return False
117110 if destination_content == patch_content :
118111 LOGGER .debug (
119112 "Destination file '%s' is identical to the patch file '%s'." ,
120113 destination ,
121114 patch ,
122115 )
123116 return False
117+ if destination_content != base_content :
118+ LOGGER .warning (
119+ "Destination file '%s' is different than it's base '%s'." ,
120+ destination ,
121+ base ,
122+ )
123+ return False
124124 async with aiofiles .open (destination , "w" ) as file :
125125 await file .write (patch_content )
126126 LOGGER .warning (
You can’t perform that action at this time.
0 commit comments