Skip to content

Explicit formats in SocketDiscoveryController#754

Merged
srzeszut merged 1 commit intosoftware-mansion:mainfrom
rhcarvalho:patch-2
Sep 18, 2025
Merged

Explicit formats in SocketDiscoveryController#754
srzeszut merged 1 commit intosoftware-mansion:mainfrom
rhcarvalho:patch-2

Conversation

@rhcarvalho
Copy link
Contributor

Fixes compilation warning.

Before:

==> live_debugger
Compiling 127 files (.ex)
warning: use LiveDebugger.App.Controllers.SocketDiscoveryController must receive the :formats option with the formats you intend to render. To keep compatibility within your app, you can list it as:

    formats: [html: "View", json: "View", ...]

Listing all formats your application renders.

After: no warning.


The controller only does a redirect, it never renders any format, so the empty list should be suitable for now.

Fixes compilation warning.

Before:

```
==> live_debugger
Compiling 127 files (.ex)
warning: use LiveDebugger.App.Controllers.SocketDiscoveryController must receive the :formats option with the formats you intend to render. To keep compatibility within your app, you can list it as:

    formats: [html: "View", json: "View", ...]

Listing all formats your application renders.
```

After: no warning.

---

The controller only does a redirect, it never renders any format, so the empty list should be suitable for now.
@srzeszut
Copy link
Contributor

Thanks for your contribution!

@srzeszut srzeszut merged commit efecd19 into software-mansion:main Sep 18, 2025
2 checks passed
srzeszut pushed a commit that referenced this pull request Oct 9, 2025
Fixes compilation warning.

Before:

```
==> live_debugger
Compiling 127 files (.ex)
warning: use LiveDebugger.App.Controllers.SocketDiscoveryController must receive the :formats option with the formats you intend to render. To keep compatibility within your app, you can list it as:

    formats: [html: "View", json: "View", ...]

Listing all formats your application renders.
```

After: no warning.

---

The controller only does a redirect, it never renders any format, so the empty list should be suitable for now.
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