Skip to content

Commit 1ef2728

Browse files
committed
Go fmt
1 parent 46c3cf8 commit 1ef2728

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func NameFromRepository(repository string) string {
9999
name = strings.Replace(path.Base(name), ".git", "", 1)
100100

101101
if name == "." || name == "/" || name == "" {
102-
logger.Fatal("Unable to get name from repository: %s", repository)
102+
logger.Fatal("Unable to get name from repository: %s", repository)
103103
}
104104

105105
return name

utils/utils_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
const sshRepo = "git@github.com:Graylog2/graylog2-server.git"
99
const httpsRepo = "https://github.com/Graylog2/graylog2-server.git"
1010

11-
var repos = [...]string {
11+
var repos = [...]string{
1212
"git@github.com:Graylog2/graylog2-server.git",
1313
"https://github.com/Graylog2/graylog2-server.git",
1414
"user@example.org:External/Graylog2/graylog2-server.git",
@@ -34,7 +34,6 @@ func TestNameFromRepository(t *testing.T) {
3434
t.Errorf("Repository %s does not resolve to name %s - result: `%s`", httpsRepo, expected, httpsRepoName)
3535
}
3636

37-
3837
for _, repo := range repos {
3938
repoName := utils.NameFromRepository(repo)
4039
if repoName != expected {

0 commit comments

Comments
 (0)