Use non-batch mode in ensure-up-to-date (#4573)

* use non batch mode in ensure-up-to-date

* update samples
This commit is contained in:
William Cheng 2019-11-22 11:43:52 +08:00 committed by GitHub
parent c89d21a903
commit de69eac316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -28,7 +28,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
git checkout -- .
# look for outdated samples
./bin/utils/ensure-up-to-date --batch
./bin/utils/ensure-up-to-date
fi
#elif [ "$NODE_INDEX" = "3" ]; then
echo "Running node $NODE_INDEX to test haskell"

View File

@ -137,6 +137,8 @@ class ApiClient {
return client.delete(url, headers: headerParams);
case "PATCH":
return client.patch(url, headers: headerParams, body: msgBody);
case "HEAD":
return client.head(url, headers: headerParams);
default:
return client.get(url, headers: headerParams);
}

View File

@ -350,6 +350,9 @@ func (c *APIClient) prepareRequest(
}
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
if len(b) == 0 {
return nil
}
if s, ok := v.(*string); ok {
*s = string(b)
return nil

View File

@ -353,6 +353,9 @@ func (c *APIClient) prepareRequest(
}
func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) {
if len(b) == 0 {
return nil
}
if s, ok := v.(*string); ok {
*s = string(b)
return nil