Procházet zdrojové kódy

load from network will be replaced with subscription

Shelikhoo před 4 roky
rodič
revize
6a2cca1220
1 změnil soubory, kde provedl 0 přidání a 2 odebrání
  1. 0 2
      common/cmdarg/arg.go

+ 0 - 2
common/cmdarg/arg.go

@@ -25,8 +25,6 @@ func LoadArg(arg string) (out io.Reader, err error) {
 // LoadArgToBytes loads one arg to []byte, maybe an remote url, or local file path
 func LoadArgToBytes(arg string) (out []byte, err error) {
 	switch {
-	case strings.HasPrefix(arg, "http://"), strings.HasPrefix(arg, "https://"):
-		out, err = FetchHTTPContent(arg)
 	default:
 		out, err = ioutil.ReadFile(arg)
 	}