Skip to content

Commit

Permalink
remove unnecessary code block
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Apr 21, 2017
1 parent 002bde8 commit ec40548
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions db/model/subject.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,6 @@ module.exports = function subject(seq, dataTypes) {
// Treat unpublishing a subject as a "delete" event.
common.publishChange(inst, eventName.del);

if (featureToggles.isFeatureEnabled(sampleStoreFeature)) {
subjectUtils.removeFromRedis(inst.absolutePath);
}

return new seq.Promise((resolve, reject) =>
inst.getSamples()
.each((samp) => samp.destroy())
Expand Down

0 comments on commit ec40548

Please sign in to comment.