Skip to content

Commit

Permalink
Fixing another release.yml bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kainazzzo committed Apr 23, 2023
1 parent 36a38cd commit 2ca2b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
asset_content_type: application/zip

- name: Upload Release Assets (osx-64)
uses: actions/upload-release-asset@v3
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
7 changes: 2 additions & 5 deletions Chat/Discord/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,9 @@ private async Task WriteAsync(ulong channelId, Stream stream)
if (_channelBots.TryGetValue(channelId, out var channelState))
{
// prepare serializer options
var options = new JsonSerializerOptions
{
WriteIndented = true
};
// Serialize channelState to stream
await JsonSerializer.SerializeAsync(stream, channelState, options);
await JsonSerializer.SerializeAsync(stream, channelState,
new JsonSerializerOptions { WriteIndented = true });

_channelBots[channelId] = channelState;
}
Expand Down

0 comments on commit 2ca2b73

Please sign in to comment.