Skip to content

Commit b4cb2b6

Browse files
committed
Remove duplicate call to addSnapshot.
1 parent 117d402 commit b4cb2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/apache/iceberg/TableMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public TableMetadata addStagedSnapshot(Snapshot snapshot) {
498498
}
499499

500500
public TableMetadata replaceCurrentSnapshot(Snapshot snapshot) {
501-
return new Builder(this).addSnapshot(snapshot).setCurrentSnapshot(snapshot).build();
501+
return new Builder(this).setCurrentSnapshot(snapshot).build();
502502
}
503503

504504
public TableMetadata removeSnapshotsIf(Predicate<Snapshot> removeIf) {

0 commit comments

Comments
 (0)