Skip to content

Commit

Permalink
Remove upstream from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trumully committed Nov 20, 2024
1 parent 7ba3948 commit 2305caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: .NET

on:
push:
branches: [ main, upstream ]
branches: [ main ]
pull_request:
branches: [ main, upstream ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -44,7 +43,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Restore dependencies
working-directory: src
run: dotnet restore
Expand Down
3 changes: 0 additions & 3 deletions src/FlatSharp.Compiler/SchemaModel/ValueUnionSchemaModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,10 @@ protected override void OnWriteCode(CodeWriter writer, CompileContext context)
this.Attributes.EmitAsMetadata(writer);
writer.AppendLine("[System.Runtime.CompilerServices.CompilerGenerated]");
writer.AppendLine($"public {@unsafe} partial struct {this.Name} : {interfaceName}");
<<<<<<< HEAD
=======
if (!generateUnsafeItems && context.Options.GenerateMethods)
{
writer.AppendLine($", System.IEquatable<{this.Name}>");
}
>>>>>>> 1b219b8 (Fix missing checks for generate-methods option)
using (writer.WithBlock())
{
// Generate an internal type enum.
Expand Down

0 comments on commit 2305caa

Please sign in to comment.