Browse Source

load from network will be replaced with subscription

Shelikhoo 4 years ago
parent
commit
6a2cca1220
1 changed files with 0 additions and 2 deletions
  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)
 	}