浏览代码

Merge pull request #29725 from yuexiao-wang/remove-redundant-var

Remove unused variable
Vincent Demeester 8 年之前
父节点
当前提交
592f9891d4
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      distribution/registry_unit_test.go

+ 1 - 2
distribution/registry_unit_test.go

@@ -60,7 +60,6 @@ func testTokenPassThru(t *testing.T, ts *httptest.Server) {
 		Official:     false,
 		Official:     false,
 		TrimHostname: false,
 		TrimHostname: false,
 		TLSConfig:    nil,
 		TLSConfig:    nil,
-		//VersionHeader: "verheader",
 	}
 	}
 	n, _ := reference.ParseNamed("testremotename")
 	n, _ := reference.ParseNamed("testremotename")
 	repoInfo := &registry.RepositoryInfo{
 	repoInfo := &registry.RepositoryInfo{
@@ -139,7 +138,7 @@ func TestTokenPassThruDifferentHost(t *testing.T) {
 	}
 	}
 }
 }
 
 
-// TestDirectory creates a new temporary directory and returns its path.
+// testDirectory creates a new temporary directory and returns its path.
 // The contents of directory at path `templateDir` is copied into the
 // The contents of directory at path `templateDir` is copied into the
 // new directory.
 // new directory.
 func testDirectory(templateDir string) (dir string, err error) {
 func testDirectory(templateDir string) (dir string, err error) {