1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00
rclone/backend/ulozto
Nick Craig-Wood c8d6b02dd6 ulozto: fix panic in various integration tests
Before this change some of the integration tests were producing this error

    panic: runtime error: invalid memory address or nil pointer dereference

This was caused by an `fs.Object` of which the type (`*Object`) was
not `nil`, but the value within was `nil`. These do not compare as
`nil` leading to the panic.

This is a classic Go gotcha: https://go.dev/doc/faq#nil_error

This was easily fixed by changing the type of one function to return
fs.Object instead of *Object.
2024-06-08 17:44:11 +01:00
..
api ulozto: implement Mover and DirMover interfaces. 2024-03-29 09:09:12 +00:00
ulozto_test.go ulozto: revert the temporary file size limitations 2024-03-29 09:07:44 +00:00
ulozto.go ulozto: fix panic in various integration tests 2024-06-08 17:44:11 +01:00