Browse Source

load from network will be replaced with subscription

Shelikhoo 4 năm trước cách đây
mục cha
commit
6a2cca1220
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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)
 	}