Forráskód Böngészése

remove unnecessary validation

Mohammed Nafees 4 éve
szülő
commit
aecb477916
1 módosított fájl, 0 hozzáadás és 4 törlés
  1. 0 4
      cli/cmd/pack/pack.go

+ 0 - 4
cli/cmd/pack/pack.go

@@ -54,10 +54,6 @@ func (a *Agent) Build(opts *docker.BuildOpts, buildConfig *types.BuildConfig) er
 				}
 
 				urlPaths := strings.Split(u.Path[1:], "/")
-				if len(urlPaths) != 2 {
-					return fmt.Errorf("invalid github repo URL: %s", bp)
-				}
-
 				dstDir := filepath.Join(homedir.HomeDir(), ".porter")
 				bpCustomName := regexp.MustCompile("/|-").ReplaceAllString(u.Path[1:], "_")