MM-57378: Bump up golangci version (#26535)
https://mattermost.atlassian.net/browse/MM-57378 ```release-note NONE ``` Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7bae6c57f9
Коммит
9431239b2e
@@ -103,10 +103,9 @@ func (s SqlChannelMemberHistoryStore) hasDataAtOrBefore(time int64) (bool, error
|
||||
return false, err
|
||||
} else if result.Min.Valid {
|
||||
return result.Min.Int64 <= time, nil
|
||||
} else {
|
||||
// if the result was null, there are no rows in the table, so there is no data from before
|
||||
return false, nil
|
||||
}
|
||||
// if the result was null, there are no rows in the table, so there is no data from before
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (s SqlChannelMemberHistoryStore) getFromChannelMemberHistoryTable(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error) {
|
||||
|
||||
@@ -172,9 +172,8 @@ func (ps SqlPluginStore) CompareAndSet(kv *model.PluginKeyValue, oldValue []byte
|
||||
return false, nil
|
||||
} else if count == 1 {
|
||||
return true, nil
|
||||
} else {
|
||||
return false, errors.Wrapf(err, "got too many rows when counting PluginKeyValue with pluginId=%s, key=%s, rows=%d", kv.PluginId, kv.Key, count)
|
||||
}
|
||||
return false, errors.Wrapf(err, "got too many rows when counting PluginKeyValue with pluginId=%s, key=%s, rows=%d", kv.PluginId, kv.Key, count)
|
||||
}
|
||||
|
||||
// No rows were affected by the update, where condition was not satisfied,
|
||||
|
||||
@@ -637,10 +637,9 @@ func (ss *SqlStore) DoesTableExist(tableName string) bool {
|
||||
}
|
||||
|
||||
return count > 0
|
||||
} else {
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
|
||||
func (ss *SqlStore) DoesColumnExist(tableName string, columnName string) bool {
|
||||
@@ -685,10 +684,9 @@ func (ss *SqlStore) DoesColumnExist(tableName string, columnName string) bool {
|
||||
}
|
||||
|
||||
return count > 0
|
||||
} else {
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
|
||||
func (ss *SqlStore) DoesTriggerExist(triggerName string) bool {
|
||||
@@ -725,10 +723,9 @@ func (ss *SqlStore) DoesTriggerExist(triggerName string) bool {
|
||||
}
|
||||
|
||||
return count > 0
|
||||
} else {
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
mlog.Fatal("Failed to check if column exists because of missing driver")
|
||||
return false
|
||||
}
|
||||
|
||||
func (ss *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool {
|
||||
@@ -750,10 +747,9 @@ func (ss *SqlStore) CreateColumnIfNotExists(tableName string, columnName string,
|
||||
}
|
||||
|
||||
return true
|
||||
} else {
|
||||
mlog.Fatal("Failed to create column because of missing driver")
|
||||
return false
|
||||
}
|
||||
mlog.Fatal("Failed to create column because of missing driver")
|
||||
return false
|
||||
}
|
||||
|
||||
func (ss *SqlStore) RemoveTableIfExists(tableName string) bool {
|
||||
|
||||
Ссылка в новой задаче
Block a user