version doesn't need the lock because it doesn't read or write to any state.
(ctx context.Context)
| 177 | |
| 178 | // version doesn't need the lock because it doesn't read or write to any state. |
| 179 | func (e *executor) version(ctx context.Context) (*version.Version, error) { |
| 180 | return versionFromBinaryPath(ctx, e.binaryPath) |
| 181 | } |
| 182 | |
| 183 | func versionFromBinaryPath(ctx context.Context, binaryPath string) (*version.Version, error) { |
| 184 | if ctx.Err() != nil { |
no test coverage detected