Skip to content

Commit

Permalink
fix: trim declarations before checking for emptyness
Browse files Browse the repository at this point in the history
  • Loading branch information
sillydan1 committed Nov 11, 2023
1 parent 3f5c713 commit 5e14f69
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public ModelGraph toModel() {
* @return true if there are no declarations, vertices or edges
*/
public boolean isEmpty() {
// TODO: trim declarations
return declarations.isEmpty().get() && vertices.isEmpty() && edges.isEmpty();
return declarations.getValueSafe().trim().isEmpty() && vertices.isEmpty() && edges.isEmpty();
}

@Override
Expand Down

0 comments on commit 5e14f69

Please sign in to comment.