Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
olivershen-wow committed Dec 29, 2023
1 parent be4abea commit 1f4b82d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.microsoft.hydralab.agent.runner.TestRunDeviceOrchestrator;
import com.microsoft.hydralab.agent.runner.TestRunner;
import com.microsoft.hydralab.agent.runner.TestTaskRunCallback;
import com.microsoft.hydralab.agent.util.FileLoadUtil;
import com.microsoft.hydralab.common.entity.agent.EnvCapability;
import com.microsoft.hydralab.common.entity.agent.EnvCapabilityRequirement;
import com.microsoft.hydralab.common.entity.common.DeviceInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package com.microsoft.hydralab.config;

import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -62,7 +63,7 @@ public void constructField(HashMap<String, Object> map) {
if (queueTimeOutSeconds == null) {
this.queueTimeOutSeconds = this.runTimeOutSeconds;
}
HashMap<String, Object> explorationArgs = (HashMap<String, Object>)map.get("exploration");
HashMap<String, Object> explorationArgs = (HashMap<String, Object>) map.get("exploration");
if (explorationArgs != null) {
Object maxStepCount = explorationArgs.get("maxStepCount");
if (maxStepCount != null) {
Expand All @@ -75,7 +76,7 @@ public void constructField(HashMap<String, Object> map) {
}
}

public void extractFromExistingField(){
public void extractFromExistingField() {
if (StringUtils.isBlank(this.inspectionStrategiesStr) && this.inspectionStrategies.size() != 0) {
this.inspectionStrategiesStr = GSON.toJson(this.inspectionStrategies);
}
Expand Down

0 comments on commit 1f4b82d

Please sign in to comment.