summaryrefslogtreecommitdiff
path: root/tools/thirdparty/OpenFst/fst/lib/const-fst.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/thirdparty/OpenFst/fst/lib/const-fst.h')
-rw-r--r--tools/thirdparty/OpenFst/fst/lib/const-fst.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/thirdparty/OpenFst/fst/lib/const-fst.h b/tools/thirdparty/OpenFst/fst/lib/const-fst.h
index 01196c9..ebeeb34 100644
--- a/tools/thirdparty/OpenFst/fst/lib/const-fst.h
+++ b/tools/thirdparty/OpenFst/fst/lib/const-fst.h
@@ -211,11 +211,9 @@ bool ConstFstImpl<A>::Write(ostream &strm,
strm.write("", 1);
strm.write(reinterpret_cast<char *>(arcs_), narcs_ * sizeof(A));
strm.flush();
- if (!strm) {
+ if (!strm)
LOG(ERROR) << "ConstFst::Write: Write failed: " << opts.source;
- return false;
- }
- return true;
+ return strm;
}
// Simple concrete immutable FST. This class attaches interface to