Optimization

This commit is contained in:
Alex Yatskov 2016-01-12 17:32:06 +09:00
parent 31beb8b2c0
commit ebcde65f7f

View File

@ -39,7 +39,7 @@ type file struct {
}
func (f *file) export(dstPath string) error {
if f.reader == nil && fileCached(f.asset, dstPath) {
if len(f.asset) > 0 && fileCached(f.asset, dstPath) {
return nil
}