We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildr::Ivy::IvyConfig#enabled? is implemented such that it will always return true. This is a side effect of using || for a default value:
Buildr::Ivy::IvyConfig#enabled?
||
nil || true # => true false || true # => also true
When the defaultable value is boolean, you need to explictly check whether the setting is nil before using the default value:
@enabled ||= Ivy.setting('enabled').nil? ? true : Ivy.setting('enabled')
The text was updated successfully, but these errors were encountered:
will be in next release
Sorry, something went wrong.
No branches or pull requests
Buildr::Ivy::IvyConfig#enabled?
is implemented such that it will always return true. This is a side effect of using||
for a default value:When the defaultable value is boolean, you need to explictly check whether the setting is nil before using the default value:
The text was updated successfully, but these errors were encountered: