Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NewVersionError() for clients using default version
The NewVersionError checks if the client is using the API version required for using a specific feature. If the client is initialized without setting a specific version, an error would be generated because it was not possible to compare versions. However, a client without explicit version set is running the latest supported version. This patch changes the behavior to only generate an error if a version was set. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information