Skip to content

Commit

Permalink
Refactor method name
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Nov 6, 2024
1 parent f595d22 commit c93768d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/aksw/iguana/cc/query/QueryData.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static List<QueryData> generate(Collection<InputStream> queries) {
}

public static boolean checkUpdate(InputStream query) {
public static boolean checkIfUpdate(InputStream query) {
try {
UpdateFactory.read(query); // Throws an exception if the query is not an update query
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private QueryList initializeTemplateQueryHandler(QuerySource templateSource) thr
return new QueryData(index.getAndIncrement(), QueryData.QueryType.TEMPLATE, null);
} else {
// query is neither a template nor an instance
final var update = QueryData.checkUpdate(new ByteArrayInputStream(query.getBytes()));
final var update = QueryData.checkIfUpdate(new ByteArrayInputStream(query.getBytes()));
if (config.template.individualResults) {
return new QueryData(index.getAndIncrement() - templateIndex.get(), update ? QueryData.QueryType.UPDATE : QueryData.QueryType.DEFAULT, null);
}
Expand Down

0 comments on commit c93768d

Please sign in to comment.