Grrr...gofmt -w common/*.go
This commit is contained in:
parent
5d97b105a8
commit
4a1fb0d262
|
@ -197,8 +197,8 @@ func TestDownloadableURL_FilePaths(t *testing.T) {
|
|||
}
|
||||
|
||||
expected := fmt.Sprintf("%s%s",
|
||||
filePrefix,
|
||||
strings.Replace(tfPath, `\`, `/`, -1))
|
||||
filePrefix,
|
||||
strings.Replace(tfPath, `\`, `/`, -1))
|
||||
if u != expected {
|
||||
t.Fatalf("unexpected: %#v != %#v", u, expected)
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ func (d *DownloadClient) Get() (string, error) {
|
|||
}
|
||||
|
||||
func (d *DownloadClient) PercentProgress() int {
|
||||
if (d.downloader == nil) {
|
||||
if d.downloader == nil {
|
||||
return -1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue