Closed goldsky closed 6 years ago
:+1:
:+1:
:+1:
:+1:
Let me guess, all those +1's are monogon? ;)
I cannot merge this as is as this breaks consistency with the various new*Version methods that still return true. FALSE also shouldn't be uppercase in terms of coding style, but that's nitpicking.
If you want to update the other new*Version methods as well I'll merge this in. Otherwise I'll address this in the next release as I do agree it should return false if it did not write a new version.
I've created an issue for updating new*Version methods to return an appropriate boolean.
When we used your class, we could not detect whether the saving succeeded or not, because the saving function itself is wrapped in a condition
This particular method should return false at the end, to mark that there is no
newResourceVersion
is made because no condition is met