chore: format code

This commit is contained in:
Jason Song committed 2023-04-04 18:27:33 +08:00
1 parent 67ce4db26f
commit 85db4653c5
2 files changed
+2 -5

No files matched your search

-1
View File
@@ -60,7 +60,6 @@ func (p *Poller) poll(ctx context.Context, wg *sync.WaitGroup, limiter *rate.Lim
log.WithError(err).Error("failed to run task")
}
}
}
func (p *Poller) fetchTask(ctx context.Context) (*runnerv1.Task, bool) {
+2 -4
View File
@@ -3,10 +3,8 @@
package ver
var (
// go build -ldflags "-X gitea.com/gitea/act_runner/internal/pkg/ver.version=1.2.3"
version = "dev"
)
// go build -ldflags "-X gitea.com/gitea/act_runner/internal/pkg/ver.version=1.2.3"
var version = "dev"
func Version() string {
return version