Skip to content

Commit

Permalink
removed unwanted Return
Browse files Browse the repository at this point in the history
  • Loading branch information
pawankashyapollion committed Dec 23, 2024
1 parent 52bb3c3 commit b3c2027
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,15 @@ private static SourceSchema generateSourceSchema(ResultSet resultSet) {
/**
* Converts a ResultSet to a Schema object, updating the provided schema.
*
* @param schema The schema to update.
* @param schema The schema to update.
* @param resultSet The ResultSet containing schema information.
* @return The updated Schema.
*/
public static Schema generateSourceSchema(Schema schema, ResultSet resultSet) {
public static void generateSourceSchema(Schema schema, ResultSet resultSet) {
SourceSchema sourceSchema = generateSourceSchema(resultSet);
Map<String, com.google.cloud.teleport.v2.spanner.migrations.schema.SourceTable> sourceTableMap =
convertSourceSchemaToMap(sourceSchema);
schema.setSrcSchema(sourceTableMap);
schema.setToSource(convertSourceToNameAndColsTable(sourceSchema.tables().values()));
return schema;
}

/**
Expand Down

0 comments on commit b3c2027

Please sign in to comment.