Commit 950ffbd5 authored by Kyle Clarke's avatar Kyle Clarke 💬

Correct doc block values as per go lint.

parent 72c96d44
Pipeline #5969140 failed with stages
in 41 seconds
......@@ -89,7 +89,7 @@ func (r *Runner) CapBreached() bool {
return (r.job.Cap != 0 && r.RunningCount >= r.job.Cap)
}
// Status will return a humanized string representation of the runner.
// CurrentStatus will return a humanized string representation of the runner.
func (r *Runner) CurrentStatus() string {
var s string
switch true {
......@@ -128,7 +128,7 @@ func (r *Runner) IsRunning() bool {
return (!r.IsCompleted() && !r.Started.IsZero())
}
// Stopped returns this runners current stop flag value.
// IsStopped returns this runners current stop flag value.
func (r *Runner) IsStopped() bool {
return r.stopped
}
......
......@@ -189,7 +189,7 @@ func (s *Schedule) Find(ID string) (*Runner, error) {
return s.FindByJobID(JobID(ID))
}
// Find will attempt to find and return a Runner instance on this schedule by JobID. Returns error on not found.
// FindByJobID will attempt to find and return a Runner instance on this schedule by JobID. Returns error on not found.
func (s *Schedule) FindByJobID(ID JobID) (*Runner, error) {
j, ok := s.runners[ID]
if ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment