Commit 47421ab3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Remove unnecessary type check in proc.Executor

parent 4bce2a75
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -267,8 +267,6 @@ class Executor(list[Argument]):
		rcode = exec_io(cmd, input=data, **kwargs)
		if query:
			return rcode
		if not isinstance(rcode, int):
			raise TypeError(f"got rcode {rcode!r}")
		if 0 != rcode:
			raise CalledProcessError(rcode, ' '.join(coerce_args(cmd)))
		return None