Skip to content

Fix unused value in Elixir 1.20 - #217

Merged
maennchen merged 1 commit into
maennchen:mainfrom
Gazler:fix/elixir-20-warning
Oct 9, 2026
Merged

maennchen merged 1 commit into
maennchen:mainfrom
Gazler:fix/elixir-20-warning

Conversation

@Gazler

@Gazler Gazler commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

warning: this clause of defp get_interval_value/2 is never used (or it will always fail/warn when invoked)
defp get_interval_value(:ambiguity_opts, %{ambiguity_opts: ambiguity_opts}), do: ambiguity_opts

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

warning: this clause of defp get_interval_value/2 is never used (or it will always fail/warn when invoked)
│
defp get_interval_value(:ambiguity_opts, %{ambiguity_opts: ambiguity_opts}), do: ambiguity_opts
     ~
│
@maennchen

Copy link
Copy Markdown
Owner

@Gazler Thanks for the PR ❤️

Is there any reason for you following the Ash PR template?

@maennchen
maennchen merged commit c1612c1 into maennchen:main Oct 9, 2026
8 checks passed
@Gazler

Gazler commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

@Gazler Thanks for the PR ❤️

Is there any reason for you following the Ash PR template?

Err, it just came up when I opened the PR:

https://github.com/maennchen/crontab/compare/main...Gazler:crontab:gr/test?expand=1

@Gazler

Gazler commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Ohhh - looks like it pulled it from here:

https://github.com/maennchen/.github/blob/3ad33cbf1332f81b0884809f482b0ad7825419cc/PULL_REQUEST_TEMPLATE.md

Apparently if you fork a .github it becomes yours too. 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants