Skip to content

Commit

Permalink
fix bug in link validation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Jan 26, 2024
1 parent 35e4166 commit 2ce05c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class-Link.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_link <- function(object) {
}

#dont allow self-links for now
if (object@source@id == object@target@id) {
if (id(object@source) == id(object@target)) {
errors <- c(errors, "Links cannot be self-links. They must have a different source and target.")
}

Expand Down

0 comments on commit 2ce05c6

Please sign in to comment.