Skip to content

Commit 1b6896f

Browse files
committed
Fix lint errors
Signed-off-by: Bob Haddleton <[email protected]>
1 parent 14b3b64 commit 1b6896f

File tree

6 files changed

+4
-7
lines changed

6 files changed

+4
-7
lines changed

context/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
// Package context contains utilities for working with Function context.
18-
package context
18+
package context //nolint:revive // local sdk package
1919

2020
// Well-known context keys.
2121
const (

errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
//
1919
// Copied over from github.com/crossplane/crossplane-runtime/v2/pkg/errors for
2020
// better discoverability and possibly diverge in the future.
21-
package errors
21+
package errors //nolint:revive // local sdk package
2222

2323
import (
2424
"errors"

request/request_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package request contains utilities for working with RunFunctionRequests.
1817
package request
1918

2019
import (

resource/composed/testresource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929
// without depending on any specific provider.
3030
type TestResource struct {
3131
metav1.TypeMeta `json:",inline"`
32-
metav1.ObjectMeta `json:"metadata,omitempty"`
32+
metav1.ObjectMeta `json:"metadata"`
3333

3434
Spec TestResourceSpec `json:"spec"`
35-
Status TestResourceStatus `json:"status,omitempty"`
35+
Status TestResourceStatus `json:"status,omitzero"`
3636
}
3737

3838
// TestResourceSpec defines the desired state of TestResource.

response/response_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package response contains utilities for working with RunFunctionResponses.
1817
package response
1918

2019
import (

response/result.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package response contains utilities for working with RunFunctionResponses.
1817
package response
1918

2019
import (

0 commit comments

Comments
 (0)