Closed allencloud closed 7 years ago
I found that we could simplify some codes in xen.go. Almost I used return fast to eliminate an else, and this will make codes ident less.
return fast
else
In addition, I think this PR also fixes an improper place, see code review comment from mine.
Signed-off-by: Allen Sun shlallen1990@gmail.com
LGTM, can you rebase this pr? there is a conflict in hypervisor/xen/xen.go.
Thanks!
Updated that, PTAL. @gao-feng
Seems the IDE misleads me to correct the code. Updated again. PTAL @gao-feng
merge, thanks!
I found that we could simplify some codes in xen.go. Almost I used
return fast
to eliminate anelse
, and this will make codes ident less.In addition, I think this PR also fixes an improper place, see code review comment from mine.
Signed-off-by: Allen Sun shlallen1990@gmail.com