Account for the instance of submodules.pack.Packer #104184
@ -165,13 +165,10 @@ class PackThread(threading.Thread):
|
|||||||
log.debug("done")
|
log.debug("done")
|
||||||
self._set_bat_status("DONE")
|
self._set_bat_status("DONE")
|
||||||
|
|
||||||
if isinstance(self.packer, submodules.pack.Packer):
|
|
||||||
msg = MsgDone(self.packer.output_path, self.packer.missing_files)
|
|
||||||
else:
|
|
||||||
msg = MsgDone(
|
msg = MsgDone(
|
||||||
dr.sybren marked this conversation as resolved
|
|||||||
self.packer.output_path,
|
self.packer.output_path,
|
||||||
self.packer.missing_files,
|
self.packer.missing_files,
|
||||||
self.packer.actual_checkout_path,
|
getattr(self.packer, "actual_checkout_path", None),
|
||||||
)
|
)
|
||||||
self.queue.put(msg)
|
self.queue.put(msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
I think the code can be simplified to:
That way the entire
if
can go away, and it's no longer specific to a particularPacker
implementation.