Skip to content

Commit e255fc7

Browse files
authored
chore!: Stop inspecting UNDERTAKER_TIME_RESOLUTION environment variable (#98)
1 parent b270c28 commit e255fc7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,12 @@ should probably be re-run from scratch to get into a good state again.
134134

135135
The timestamp is always given in millisecond but the time resolution can be
136136
rounded using the `precision` parameter. The use case is to be able to compare a build time
137-
to a file time attribute. On node v0.10 or with file system like HFS or FAT,
138-
`fs.stat` time attributes like `mtime` precision is one second.
137+
to a file time attribute.
139138

140139
Assuming `undertakerInst.lastRun('someTask')` returns `1426000001111`,
141140
`undertakerInst.lastRun('someTask', 1000)` returns `1426000001000`.
142141

143-
The default time resolution is `1000` on node v0.10, `0` on node 0.11+ but
144-
it can be overwritten using `UNDERTAKER_TIME_RESOLUTION` environment variable.
142+
The default time resolution is `1`.
145143

146144
## Custom Registries
147145

lib/last-run.js

-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ var retrieveLastRun = require('last-run');
55
var metadata = require('./helpers/metadata');
66

77
function lastRun(task, timeResolution) {
8-
if (timeResolution == null) {
9-
timeResolution = process.env.UNDERTAKER_TIME_RESOLUTION;
10-
}
11-
128
var fn = task;
139
if (typeof task === 'string') {
1410
fn = this._getTask(task);

0 commit comments

Comments
 (0)