Skip to content

Commit fb2081f

Browse files
committed
Broaden find/replace
1 parent adede8c commit fb2081f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/Generate/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ private static async Task GenerateEntities(string token, string path)
5151
foreach (var file in CodeGenerator.Generate(schema, "Octokit.GraphQL", "Octokit.GraphQL.Model"))
5252
{
5353
// fix for int32 overflow, see https://github.com/octokit/octokit.graphql.net/issues/311
54-
if (file.Content.Contains("public int? DatabaseId { get; }"))
54+
if (file.Content.Contains("int? DatabaseId { get; }"))
5555
{
56-
file.Content = file.Content.Replace("public int? DatabaseId { get; }", "public long? DatabaseId { get; }");
56+
file.Content = file.Content.Replace("int? DatabaseId { get; }", "long? DatabaseId { get; }");
5757
}
5858
Console.WriteLine("Writing " + file.Path);
5959
File.WriteAllText(Path.Combine(path, file.Path), file.Content);

0 commit comments

Comments
 (0)