Commit 62add101 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Run gofmt

parent 4adfa8f8
......@@ -3,8 +3,8 @@
package commands
import (
"os"
"gitlab.com/gitlab-org/gitlab-ci-multi-runner/helpers"
"os"
"path/filepath"
)
......
......@@ -5,9 +5,9 @@ import (
service "github.com/ayufan/golang-kardianos-service"
"github.com/codegangsta/cli"
"gitlab.com/gitlab-org/gitlab-ci-multi-runner/common"
"runtime"
"gitlab.com/gitlab-org/gitlab-ci-multi-runner/helpers"
"os"
"runtime"
)
const (
......
......@@ -60,7 +60,7 @@ type RunnerConfig struct {
type BaseConfig struct {
Concurrent int `toml:"concurrent" json:"concurrent"`
User *string `toml:"user" json:"user"`
User *string `toml:"user" json:"user"`
Runners []*RunnerConfig `toml:"runners" json:"runners"`
}
......
......@@ -31,7 +31,6 @@ func RegisterExecutor(executor string, factory ExecutorFactory) {
executors[executor] = factory
}
func GetExecutorFeatures(executor string) *FeaturesInfo {
if executors == nil {
return nil
......
......@@ -303,7 +303,7 @@ func (s *DockerExecutor) createServices() ([]string, error) {
var links []string
for linkName, container := range linksMap {
links = append(links, container.ID + ":" + linkName)
links = append(links, container.ID+":"+linkName)
}
return links, nil
......@@ -424,7 +424,7 @@ func (s *DockerExecutor) removeContainer(id string) error {
return err
}
func (s *DockerExecutor) verifyAllowedImage(image, optionName string, allowedImages... string) error {
func (s *DockerExecutor) verifyAllowedImage(image, optionName string, allowedImages ...string) error {
for _, allowedImage := range allowedImages {
ok, _ := filepath.Match(allowedImage, image)
if ok {
......
package helpers
import (
"os/user"
"os"
"os/user"
)
func GetCurrentUserName() string {
......
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