diff options
| author | OpportunityLiu <[email protected]> | 2019-07-02 11:32:13 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-02 11:32:13 +0800 |
| commit | aab06410fd763538632d82dee0d68a20f2d3e986 (patch) | |
| tree | f2be6485248fb614dfa5f2890735548093a853d7 /core/src/xmake/io/file_flush.c | |
| parent | e2dc6e831a3c5114947040d11e5c0e6a9812e1ad (diff) | |
fix assert
Diffstat (limited to 'core/src/xmake/io/file_flush.c')
| -rw-r--r-- | core/src/xmake/io/file_flush.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/src/xmake/io/file_flush.c b/core/src/xmake/io/file_flush.c index dceb00e56..9d296037b 100644 --- a/core/src/xmake/io/file_flush.c +++ b/core/src/xmake/io/file_flush.c @@ -60,11 +60,9 @@ tb_int_t xm_io_file_flush(lua_State* lua) tb_assert_and_check_return_val(lua, 0); xm_io_file* file = xm_io_getfile(lua); - if (xm_io_file_is_closed(file)) xm_io_file_error_closed(lua); tb_bool_t succeed = xm_io_file_is_file(file) ? xm_io_file_flush(file) : xm_io_std_flush(file); - if (!succeed) xm_io_file_error(lua, file, "failed to flush file"); lua_pushboolean(lua, tb_true); xm_io_file_success(); |
