libs/providers/storage/common.go
Showing 1 of 1 total issue
Function GetFile
has 5 return statements (exceeds 4 allowed). Open
Open
func GetFile(ctx context.Context, storageRoot, docUUID string, imageInfo ImageInfo) (string, string, error) { ctx, span := common.TracerWeb.Start(ctx, "GetFile") ctx, spanHttpGet := common.TracerWeb.Start(ctx, "http.Get") resp, err := http.Get(imageInfo.Original.URL)