Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Updated to make indexOf work
Browse files Browse the repository at this point in the history
  • Loading branch information
aleitner committed Oct 12, 2016
1 parent 9c23dc5 commit b3a2cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/fslogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ FsLogger.prototype._deleteOldFiles = function(folder, callback) {

files.forEach(function(file) {
if (
(file.indexOf('.log')) &&
(file.indexOf('StorjDrive')) &&
(file.indexOf('.log') !== -1) &&
(file.indexOf('StorjDrive') !== -1) &&
(file.indexOf(days[0]) === -1) &&
(file.indexOf(days[1]) === -1)
) {
Expand Down

0 comments on commit b3a2cf4

Please sign in to comment.