Skip to content

Commit

Permalink
Merge pull request #1068 from adamreeve/dup_semicolon
Browse files Browse the repository at this point in the history
Remove duplicate semicolon in return statements
  • Loading branch information
badcel authored May 30, 2024
2 parents 4803234 + 681b120 commit fbc6ce4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)
var createNewInstance = $"new {Model.ComplexType.GetFullyQualified(record)}({handleExpression})";

return returnType.Nullable
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance};"
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance}"
: createNewInstance;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)

return returnType.Nullable
? $"GObject.Internal.ObjectWrapper.WrapNullableInterfaceHandle<{Model.Interface.GetFullyQualifiedImplementationName(@interface)}>({fromVariableName}, {Transfer.IsOwnedRef(returnType.Transfer).ToString().ToLower()})"
: $"GObject.Internal.ObjectWrapper.WrapInterfaceHandle<{Model.Interface.GetFullyQualifiedImplementationName(@interface)}>({fromVariableName}, {Transfer.IsOwnedRef(returnType.Transfer).ToString().ToLower()})"; ;
: $"GObject.Internal.ObjectWrapper.WrapInterfaceHandle<{Model.Interface.GetFullyQualifiedImplementationName(@interface)}>({fromVariableName}, {Transfer.IsOwnedRef(returnType.Transfer).ToString().ToLower()})";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)
var createNewInstance = $"new {Model.ComplexType.GetFullyQualified(record)}({handleExpression})";

return returnType.Nullable
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance};"
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance}"
: createNewInstance;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)
var createNewInstance = $"new {Model.ComplexType.GetFullyQualified(record)}({handleExpression})";

return returnType.Nullable
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance};"
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance}"
: createNewInstance;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)
var createNewInstance = $"new {Model.ComplexType.GetFullyQualified(record)}({handleExpression})";

return returnType.Nullable
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance};"
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance}"
: createNewInstance;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public string GetString(GirModel.ReturnType returnType, string fromVariableName)
var createNewInstance = $"new {Model.ComplexType.GetFullyQualified(record)}({handleExpression})";

return returnType.Nullable
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance};"
? $"{fromVariableName}.IsInvalid ? null : {createNewInstance}"
: createNewInstance;
}
}

0 comments on commit fbc6ce4

Please sign in to comment.