Fixed some ineffective assignments (#12543)

Этот коммит содержится в:
Agniva De Sarker
2019-10-03 18:15:27 +05:30
коммит произвёл Eli Yukelzon
родитель eebe1fc290
Коммит 20ff7032a6
16 изменённых файлов: 35 добавлений и 11 удалений

Просмотреть файл

@@ -158,7 +158,7 @@ func GetInfoForBytes(name string, data []byte) (*FileInfo, *AppError) {
if gifConfig, err := gif.DecodeAll(bytes.NewReader(data)); err != nil {
// Still return the rest of the info even though it doesn't appear to be an actual gif
info.HasPreviewImage = true
err = NewAppError("GetInfoForBytes", "model.file_info.get.gif.app_error", nil, "name="+name, http.StatusBadRequest)
return info, NewAppError("GetInfoForBytes", "model.file_info.get.gif.app_error", nil, "name="+name, http.StatusBadRequest)
} else {
info.HasPreviewImage = len(gifConfig.Image) == 1
}