Skip to content

Commit

Permalink
Use discard variable for unused variable and use raw literal string f…
Browse files Browse the repository at this point in the history
…or the readme
  • Loading branch information
Apollo3zehn committed Jul 26, 2024
1 parent 1344a3f commit b2af64b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Nexus/Extensions/Sources/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public async Task ReadAsync(
{
cancellationToken.ThrowIfCancellationRequested();

var (catalog, resource, representation, parameters) = catalogItem;
var (catalog, resource, representation, _) = catalogItem;

// check credentials
if (catalog.Id == RemoteCatalogId)
Expand Down Expand Up @@ -253,19 +253,20 @@ internal static ResourceCatalog LoadCatalog(

if (catalogId == RemoteCatalogId)
catalogBuilder.WithReadme(
@"This catalog demonstrates how to access data sources that require additional credentials. These can be appended in the user settings menu (on the top right). In case of this example catalog, the JSON string to be added would look like the following:
"""
This catalog demonstrates how to access data sources that require additional credentials. These can be appended in the user settings menu (on the top right). In case of this example catalog, the JSON string to be added would look like the following:
```json
{
""Nexus.Sources.Sample"": {
""user"": ""test"",
""password"": ""1234""
"Nexus.Sources.Sample": {
"user": "test",
"password": "1234"
}
}
```
As soon as these credentials have been added, you should be granted full access to the data.
");
""");

return catalogBuilder.Build();
}
Expand Down

0 comments on commit b2af64b

Please sign in to comment.