Fix empty string comparison issues in the codebase (#16686)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
200a56fa5a
Коммит
94c24eea20
@@ -59,11 +59,11 @@ func (p *HelpersImpl) ensureServerVersion(required string) error {
|
||||
|
||||
// GetPluginAssetURL implements GetPluginAssetURL.
|
||||
func (p *HelpersImpl) GetPluginAssetURL(pluginID, asset string) (string, error) {
|
||||
if len(pluginID) == 0 {
|
||||
if pluginID == "" {
|
||||
return "", errors.New("empty pluginID provided")
|
||||
}
|
||||
|
||||
if len(asset) == 0 {
|
||||
if asset == "" {
|
||||
return "", errors.New("empty asset name provided")
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user