Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 3c2ee324ffb03beb969dc9e4935e02c66b2f89af..0565ee97d6158d0cbde9ec31584c98fff19dad0a 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1263,9 +1263,7 @@ static Error draw_skdocument(const Src& src, SkDocument* doc, SkWStream* dst) { |
} |
doc->endPage(); |
} |
- if (!doc->close()) { |
- return "SkDocument::close() returned false"; |
- } |
+ doc->close(); |
dst->flush(); |
return ""; |
} |