Skip to content

Commit e4738a9

Browse files
author
James Leigh
committed
Issue #25: Inline isLocalTransaction
Signed-off-by: James Leigh <james.leigh@ontotext.com>
1 parent 6fe88c0 commit e4738a9

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • core/repository/sail/src/main/java/org/eclipse/rdf4j/repository/sail

core/repository/sail/src/main/java/org/eclipse/rdf4j/repository/sail/SailUpdate.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void execute()
5454

5555
boolean localTransaction = false;
5656
try {
57-
if (isLocalTransaction()) {
57+
if (!getConnection().isActive()) {
5858
localTransaction = true;
5959
beginLocalTransaction();
6060
}
@@ -92,12 +92,6 @@ public void execute()
9292
}
9393
}
9494

95-
private boolean isLocalTransaction()
96-
throws RepositoryException
97-
{
98-
return !getConnection().isActive();
99-
}
100-
10195
private void beginLocalTransaction()
10296
throws RepositoryException
10397
{

0 commit comments

Comments
 (0)