Skip to content

Commit

Permalink
Fix tidy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 23, 2023
1 parent cf2866b commit ccace74
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pennylane_lightning/core/src/observables/Observables.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,8 @@ class SparseHamiltonianBase : public Observable<StateVectorT> {
isEqual(const Observable<StateVectorT> &other) const override {
const auto &other_cast =
static_cast<const SparseHamiltonianBase<StateVectorT> &>(other);

if (data_ != other_cast.data_ || indices_ != other_cast.indices_ ||
offsets_ != other_cast.offsets_) {
return false;
}

return true;
return data_ != other_cast.data_ || indices_ != other_cast.indices_ ||
offsets_ != other_cast.offsets_;
}

public:
Expand Down

0 comments on commit ccace74

Please sign in to comment.