change code for travis ci

This commit is contained in:
wemeya 2016-06-06 23:47:27 +08:00
parent 8459fcf7dc
commit fbb26634a7

View File

@ -149,7 +149,7 @@ func (ua *UserAPI) Put() {
}
user := models.User{UserID: ua.userID}
ua.DecodeJSONReq(&user)
err = commonValidate(user)
err := commonValidate(user)
if err != nil {
log.Warning("Bad request in change user profile: %v", err)
ua.RenderError(http.StatusBadRequest, "change user profile error:"+err.Error())