Ver código fonte

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 anos atrás
pai
commit
0b75c02276
1 arquivos alterados com 1 adições e 1 exclusões
  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"))
 	var output [][]byte
 	for _, currentLine := range lines {
-		var commentIndex = bytes.Index(currentLine, commentMarker)
+		commentIndex := bytes.Index(currentLine, commentMarker)
 		if commentIndex == -1 {
 			output = append(output, currentLine)
 		} else {