Skip to content

Commit 2ebef29

Browse files
committed
fix(index): don't trust the machine
1 parent 0720767 commit 2ebef29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function checkForNewerWith (client) {
204204

205205
client.resources.describe(normalizePath(conf.target + '/' + file.relative))
206206
.then(function (resourceInfo) {
207-
const newer = Object.prototype.hasOwnProperty.call(!resourceInfo, 'modified') || (Date.parse(file.stat.mtime) > Date.parse(resourceInfo.modified))
207+
const newer = !Object.prototype.hasOwnProperty.call(resourceInfo, 'modified') || (Date.parse(file.stat.mtime) > Date.parse(resourceInfo.modified))
208208
callback(null, newer ? file : null)
209209
})
210210
.catch(function (e) {

0 commit comments

Comments
 (0)