I guess the list is anyway very short, often with a single element, right?
Yes, for most of the drivers, the response will have two elements, simple and tus. Since we weren't able to configure the tus client last time, we just opt for simple for now. I'll fix that soon. Regarding the list comprehension, the protocol parameter would be unique, so the filtered list will just have a single element. I don't think we can write comprehensions without storing the values in a container, so had to use this.
Yes, for most of the drivers, the response will have two elements, simple and tus. Since we weren't able to configure the tus client last time, we just opt for simple for now. I'll fix that soon. Regarding the list comprehension, the
protocol
parameter would be unique, so the filtered list will just have a single element. I don't think we can write comprehensions without storing the values in a container, so had to use this.