summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/graph.cc b/src/graph.cc
index d99c8bd..fcfeba0 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -29,13 +29,7 @@
bool Node::Stat(DiskInterface* disk_interface, string* err) {
METRIC_RECORD("node stat");
- mtime_ = disk_interface->Stat(path_);
- if (mtime_ == -1) {
- // TODO: Let DiskInterface::Stat() take err instead of it calling Error().
- *err = "stat failed";
- return false;
- }
- return true;
+ return (mtime_ = disk_interface->Stat(path_, err)) != -1;
}
bool DependencyScan::RecomputeDirty(Edge* edge, string* err) {