Fix formatting

gofmt -w .

Change-Id: If9cf0b7bd810f899edffcd2edf361fa83245bd2a
This commit is contained in:
Colin Cross 2015-04-20 16:41:55 -07:00
parent efe578a605
commit 63d5d4d9e4
5 changed files with 7 additions and 7 deletions

View file

@ -21,8 +21,8 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime/pprof"
"runtime"
"runtime/pprof"
"github.com/google/blueprint"
"github.com/google/blueprint/deptools"

View file

@ -132,7 +132,7 @@ func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error)
r >= '0' && r <= '9', r == '_', r == '-':
// The beginning of a of the variable name. Output the string and
// keep going.
state.pushString(state.str[state.stringStart:i-1])
state.pushString(state.str[state.stringStart : i-1])
return parseDollarState, nil
case r == '$':
@ -143,7 +143,7 @@ func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error)
case r == '{':
// This is a bracketted variable name (e.g. "${blah.blah}"). Output
// the string and keep going.
state.pushString(state.str[state.stringStart:i-1])
state.pushString(state.str[state.stringStart : i-1])
state.varStart = i + 1
return parseBracketsState, nil

View file

@ -58,12 +58,12 @@ var ninjaParseTestCases = []struct {
{
input: "$foo${bar}",
vars: []string{"foo", "bar"},
strs: []string{"","", ""},
strs: []string{"", "", ""},
},
{
input: "$foo$$",
vars: []string{"foo"},
strs: []string{"","$$"},
strs: []string{"", "$$"},
},
{
input: "foo bar",