Skip to content

Commit

Permalink
minor update to using safeGet
Browse files Browse the repository at this point in the history
  • Loading branch information
vietnguyengit committed Sep 3, 2024
1 parent 6d22996 commit 5051ec6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected <T> VocabModel buildVocabModel(T currentNode, String vocabApiBase, Voc
} else if (currentNode instanceof TextNode textNode) {
resourceUri = textNode.asText();
} else if (currentNode instanceof VocabModel vocabNode) {
safeGet(vocabNode::getAbout);
resourceUri = safeGet(vocabNode::getAbout);
}

if (resourceUri == null) {
Expand Down

0 comments on commit 5051ec6

Please sign in to comment.