Browse Source

libnetwork/resolvconf: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 years ago
parent
commit
0b75c02276
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/resolvconf/resolvconf.go

+ 1 - 1
libnetwork/resolvconf/resolvconf.go

@@ -137,7 +137,7 @@ func getLines(input []byte, commentMarker []byte) [][]byte {
 	lines := bytes.Split(input, []byte("\n"))
 	lines := bytes.Split(input, []byte("\n"))
 	var output [][]byte
 	var output [][]byte
 	for _, currentLine := range lines {
 	for _, currentLine := range lines {
-		var commentIndex = bytes.Index(currentLine, commentMarker)
+		commentIndex := bytes.Index(currentLine, commentMarker)
 		if commentIndex == -1 {
 		if commentIndex == -1 {
 			output = append(output, currentLine)
 			output = append(output, currentLine)
 		} else {
 		} else {