Skip to content

Commit

Permalink
Fix: result of map_rescan_current passed wrongly (#2657)
Browse files Browse the repository at this point in the history
Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
  • Loading branch information
guoh064 and LmeSzinc committed May 28, 2023
1 parent 5fece23 commit 9569435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/os/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ def map_rescan_once(self, rescan_mode='full', drop=None):
self.handle_info_bar()
self.update()
if self.map_rescan_current(drop=drop):
logger.info(f'Map rescan once end, result={result}')
return result
logger.info(f'Map rescan once end, result={True}')
return True

if rescan_mode == 'full':
logger.hr('Map rescan full', level=2)
Expand Down

0 comments on commit 9569435

Please sign in to comment.