fix build error with go 1.0

formater/formater.go:301: function ends without a return statement