Jonas Jenwald
67a1cfc1b1
Improve the handling getBaseStreams
, on the various Stream implementations
...
The way that `getBaseStreams` is currently handled has bothered me from time to time, especially how we're checking if the method exists before calling it.
By adding a dummy `BaseStream.getBaseStreams` method, and having the call-sites simply check the return value, we can improve some of the relevant code.
Note in particular how the `ObjectLoader._walk` method didn't actually check that the data in question is a Stream instance, and instead only checked the `currentNode` (which could be anything) for the existence of a `getBaseStreams` property.
2021-04-28 13:44:47 +02:00
..
2021-04-12 14:13:49 +02:00
2021-03-13 16:12:53 +01:00
2021-04-27 19:02:20 +02:00
2020-10-03 20:15:29 +02:00
2021-04-28 10:16:51 +02:00
2021-04-28 10:16:51 +02:00
2021-04-28 13:44:47 +02:00
2020-10-03 20:15:29 +02:00
2021-04-23 09:42:32 +02:00
2021-04-28 10:16:51 +02:00
2021-04-27 13:29:09 +02:00
2021-03-26 18:23:18 +01:00
2021-01-09 20:37:51 +01:00
2021-04-28 13:44:45 +02:00
2021-04-25 17:40:00 +02:00
2021-02-10 12:28:49 +01:00
2021-04-15 17:57:42 +02:00
2021-04-28 10:16:51 +02:00
2021-04-28 13:44:47 +02:00
2021-04-28 10:16:51 +02:00
2021-04-01 16:47:30 +02:00
2021-04-28 10:16:51 +02:00
2021-01-09 20:37:51 +01:00
2021-04-28 10:16:51 +02:00
2021-04-13 21:00:30 +02:00
2021-04-28 10:16:51 +02:00
2021-03-12 11:57:27 +01:00
2021-04-20 20:48:44 +02:00
2021-04-24 13:00:19 +02:00
2021-02-27 12:46:57 +01:00
2021-01-28 10:19:26 +01:00
2021-04-28 10:16:51 +02:00
2021-04-28 10:16:51 +02:00
2020-10-03 20:15:29 +02:00
2021-04-28 10:16:51 +02:00
2021-01-09 20:19:39 +01:00
2021-04-28 10:16:51 +02:00
2020-12-21 20:35:52 +01:00
2021-04-28 10:16:51 +02:00
2021-02-17 13:12:01 +01:00
2021-02-27 12:44:45 +01:00
2020-10-26 16:27:33 +01:00
2021-04-22 13:15:50 +02:00
2021-04-28 13:44:47 +02:00
2021-03-14 11:49:31 +01:00
2021-04-28 10:16:51 +02:00
2021-03-14 11:43:05 +01:00
2021-04-15 17:57:42 +02:00
2021-04-28 10:16:51 +02:00
2021-04-28 13:44:45 +02:00
2020-10-03 20:15:29 +02:00
2021-04-28 10:16:51 +02:00
2021-01-09 20:37:51 +01:00
2021-04-28 13:44:45 +02:00
2021-04-13 21:00:30 +02:00
2021-03-12 12:16:50 +01:00
2021-02-27 13:20:09 +01:00
2021-04-24 13:00:19 +02:00
2021-04-25 17:40:00 +02:00
2021-04-22 12:08:56 +02:00
2021-02-17 13:12:01 +01:00
2021-04-13 21:00:30 +02:00