hongbo-miao/hongbomiao.com

View on GitHub
api-go/internal/graphql_server/utils/get_prediction.go

Summary

Maintainability
A
35 mins
Test Coverage

Function GetPrediction has 5 return statements (exceeds 4 allowed).
Open

func GetPrediction(fileHeader *multipart.FileHeader) (*Prediction, error) {
    file, err := fileHeader.Open()
    if err != nil {
        log.Error().Err(err).Msg("file.Open")
        return nil, err
Severity: Major
Found in api-go/internal/graphql_server/utils/get_prediction.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status