Fixing codeql bug (#3082)

Signed-off-by: rajdas98 <mail.rajdas@gmail.com>
This commit is contained in:
Raj Babu Das 2021-08-04 12:27:29 +05:30 committed by GitHub
parent 374b8181af
commit 092a05d986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -30,7 +30,6 @@ func GetProject(ctx context.Context, query bson.D) (*Project, error) {
var project = new(Project)
result, err := mongodb.Operator.Get(ctx, mongodb.ProjectCollection, query)
if err != nil {
log.Print("Error getting project with query: ", query, "\nError message: ", err)
return nil, err
}
err = result.Decode(project)