client/pkg/repo/client.go
Method Client.findChannelReleaseBinPath
has 6 return statements (exceeds 4 allowed). Open
Open
func (c Client) findChannelReleaseBinPath(group, channel, optionalBinName string) (string, error) {
dir, releaseName, err := c.findChannelReleaseBinDir(group, channel)
if err != nil {
return "", err
}
Method Client.findChannelReleaseDir
has 5 return statements (exceeds 4 allowed). Open
Open
func (c Client) findChannelReleaseDir(group, channel string) (dir, release string, err error) {
release, err = c.GetChannelRelease(group, channel)
if err != nil {
return "", "", err
}
Method Client.GetChannelRelease
has 5 return statements (exceeds 4 allowed). Open
Open
func (c Client) GetChannelRelease(group, channel string) (string, error) {
channelFilePath := c.channelPath(group, channel)
exist, err := util.IsRegularFileExist(channelFilePath)
if err != nil {
return "", fmt.Errorf("unable to check existence of file %q: %w", channelFilePath, err)