Skip to content

fix(elixir-sdk): fix Elixir 1.20 warning - #13677

Open
wingyplus wants to merge 1 commit into
dagger:mainfrom
wingyplus:fix-elixir-1-20-warning
Open

fix(elixir-sdk): fix Elixir 1.20 warning#13677
wingyplus wants to merge 1 commit into
dagger:mainfrom
wingyplus:fix-elixir-1-20-warning

Conversation

@wingyplus

Copy link
Copy Markdown
Contributor

Fix the following warning:

Compiling 3 files (.ex)
    warning: the following clause is redundant:

        otherwise ->

    previous clauses have already matched on the following types:

        :error
        nil

    where "otherwise" was given the type:

        # type: dynamic(:error or nil)
        # from: lib/dagger/core/engine_conn.ex:51:7
        otherwise

    type warning found at:
    │
 51 │       otherwise -> otherwise
    │                 ~
    │
    └─ lib/dagger/core/engine_conn.ex:51:17: Dagger.Core.EngineConn.from_local_cli/1

The Elixir type checker warn that the otherwise consider as redundant because with clause already covered all the cases.

@wingyplus
wingyplus requested a review from a team as a code owner July 17, 2026 17:27
Fix the following warning:

```
Compiling 3 files (.ex)
    warning: the following clause is redundant:

        otherwise ->

    previous clauses have already matched on the following types:

        :error
        nil

    where "otherwise" was given the type:

        # type: dynamic(:error or nil)
        # from: lib/dagger/core/engine_conn.ex:51:7
        otherwise

    type warning found at:
    │
 51 │       otherwise -> otherwise
    │                 ~
    │
    └─ lib/dagger/core/engine_conn.ex:51:17: Dagger.Core.EngineConn.from_local_cli/1
```

The Elixir type checker warn that the `otherwise` consider as redundant
because `with` clause already covered all the cases.

Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
@wingyplus
wingyplus force-pushed the fix-elixir-1-20-warning branch from 91220f1 to 159e9f3 Compare July 18, 2026 00:28
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant