Skip to content

Commit

Permalink
removed the error preventing the creation of empty handles for Packed…
Browse files Browse the repository at this point in the history
…Graphs.
  • Loading branch information
Robin-Rounthwaite committed Nov 9, 2023
1 parent 8e47864 commit ffc2988
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bdsg/include/bdsg/internal/base_packed_graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,10 +1191,6 @@ handle_t BasePackedGraph<Backend>::create_handle(const string& sequence) {
template<typename Backend>
handle_t BasePackedGraph<Backend>::create_handle(const string& sequence, const nid_t& id) {

if (sequence.empty()) {
throw std::runtime_error("error:[BasePackedGraph] tried to create an empty node with ID " + std::to_string(id));
}

if (id <= 0) {
throw std::runtime_error("error:[BasePackedGraph] tried to create a node with non-positive ID " + std::to_string(id));
}
Expand Down

0 comments on commit ffc2988

Please sign in to comment.