Skip to content

Commit f19a5b2

Browse files
committed
Fixed typo and a MyPy error
1 parent e97c4ea commit f19a5b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/murfey/client/watchdir.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def scan(self, modification_time: float | None = None, transfer_all: bool = Fals
130130
settling_time=scan_completion
131131
)
132132

133-
# Create a list of files sroted based on their timestamps
133+
# Create a list of files stored based on their timestamps
134134
files_for_transfer = []
135135
time_ordered_file_candidates = sorted(
136136
self._file_candidates,
@@ -152,8 +152,9 @@ def scan(self, modification_time: float | None = None, transfer_all: bool = Fals
152152
continue
153153

154154
if (
155-
self._file_candidates[x].settling_time + self.settling_time # type: ignore
156-
< time.time()
155+
current_file_settling_time := self._file_candidates[x].settling_time
156+
) is not None and (
157+
current_file_settling_time + self.settling_time < time.time()
157158
):
158159
try:
159160
file_stat = os.stat(x)

0 commit comments

Comments
 (0)