From 45fe582aa4049dd7846e28ab5b6f6fb8bc047866 Mon Sep 17 00:00:00 2001 From: Islam Aleiv Date: Tue, 25 Jun 2024 14:18:48 +0200 Subject: [PATCH] Fix lint --- internal/encryption/context.go | 3 ++- internal/encryption/encryptor_test.go | 5 +++-- internal/merkle/crdt/errors.go | 2 +- internal/merkle/crdt/field.go | 10 ++++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/internal/encryption/context.go b/internal/encryption/context.go index cf433ef54d..f1b3884390 100644 --- a/internal/encryption/context.go +++ b/internal/encryption/context.go @@ -13,8 +13,9 @@ package encryption import ( "context" - "github.com/sourcenetwork/defradb/datastore" "github.com/sourcenetwork/immutable" + + "github.com/sourcenetwork/defradb/datastore" ) // docEncContextKey is the key type for document encryption context values. diff --git a/internal/encryption/encryptor_test.go b/internal/encryption/encryptor_test.go index 0428fb814a..10abd1f062 100644 --- a/internal/encryption/encryptor_test.go +++ b/internal/encryption/encryptor_test.go @@ -16,10 +16,11 @@ import ( "testing" ds "github.com/ipfs/go-datastore" - "github.com/sourcenetwork/defradb/datastore/mocks" - "github.com/sourcenetwork/defradb/internal/core" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" + + "github.com/sourcenetwork/defradb/datastore/mocks" + "github.com/sourcenetwork/defradb/internal/core" ) var testErr = errors.New("test error") diff --git a/internal/merkle/crdt/errors.go b/internal/merkle/crdt/errors.go index 9e828df5dc..58ee8b6bc4 100644 --- a/internal/merkle/crdt/errors.go +++ b/internal/merkle/crdt/errors.go @@ -1,4 +1,4 @@ -// Copyright 2023 Democratized Data Foundation +// Copyright 2024 Democratized Data Foundation // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. diff --git a/internal/merkle/crdt/field.go b/internal/merkle/crdt/field.go index 9e3b95f69c..acc3203e67 100644 --- a/internal/merkle/crdt/field.go +++ b/internal/merkle/crdt/field.go @@ -1,3 +1,13 @@ +// Copyright 2024 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package merklecrdt import "github.com/sourcenetwork/defradb/client"