tektoncd / results

Long term storage of execution results.
Apache License 2.0
78 stars 74 forks source link

Replace the interface{} type with the shorter any #630

Closed enarha closed 1 year ago

enarha commented 1 year ago

Go 1.18 includes the pre-declared identifier "any", which is a shorter alias of "interface{}". The following command was used to replace each instance of "interface{}" with "any" in the codebase excluding the vendor directory and auto generated protobuf files (.pb.go). gofmt -r 'interface{} -> any' -w .

/kind misc

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

NONE
adambkaplan commented 1 year ago

/kind cleanup

enarha commented 1 year ago

@avinal good point. I updated the PR to exclude the .pb.go files as well (in addition to vendor/).

tekton-robot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avinal, sayan-biswas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tektoncd/results/blob/main/OWNERS)~~ [avinal,sayan-biswas] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment