summaryrefslogtreecommitdiff
path: root/xmake/core/project/cache.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-09 20:11:34 +0800
committerruki <[email protected]>2016-04-09 20:11:34 +0800
commit71296f55db2d5b0a9249592c3428797708cd0683 (patch)
tree4e214293f83204be13d9e8e9bbeda78557fe781b /xmake/core/project/cache.lua
parenta684950c450b7490f3a95c2200cd1943a30a4272 (diff)
remove instace:interfaces for cache module
Diffstat (limited to 'xmake/core/project/cache.lua')
-rw-r--r--xmake/core/project/cache.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/project/cache.lua b/xmake/core/project/cache.lua
index 78eb6a188..9a7491aed 100644
--- a/xmake/core/project/cache.lua
+++ b/xmake/core/project/cache.lua
@@ -101,10 +101,7 @@ end
function cache:flush()
-- save to file
- local ok, errors = io.save(self._CACHEPATH, self._CACHEDATA)
- if not ok then
- os.raise(errors)
- end
+ return io.save(self._CACHEPATH, self._CACHEDATA)
end
-- return module