mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +08:00
fix: 优化语法
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2409252249
|
v5.0.0-beta-2409252253
|
||||||
|
|||||||
+1
-3
@@ -474,9 +474,7 @@ func (r *CaseRunner) parseConfig() (parsedConfig *TConfig, err error) {
|
|||||||
return parsedConfig, nil
|
return parsedConfig, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *CaseRunner) parseDeviceConfig(
|
func (r *CaseRunner) parseDeviceConfig(device interface{}, configVariables map[string]interface{}) error {
|
||||||
device interface{}, configVariables map[string]interface{},
|
|
||||||
) error {
|
|
||||||
deviceValue := reflect.ValueOf(device).Elem()
|
deviceValue := reflect.ValueOf(device).Elem()
|
||||||
deviceType := deviceValue.Type()
|
deviceType := deviceValue.Type()
|
||||||
for i := 0; i < deviceType.NumField(); i++ {
|
for i := 0; i < deviceType.NumField(); i++ {
|
||||||
|
|||||||
Reference in New Issue
Block a user