Skip to content

Commit fb14f37

Browse files
committed
Fixed last style issues
1 parent d398c5b commit fb14f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/de/upb/cs/swt/delphi/cli/commands/SearchCommand.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import scala.util.{Failure, Success, Try}
3737

3838
object SearchCommand extends Command with SprayJsonSupport with DefaultJsonProtocol {
3939

40-
final var SEARCH_TIMEOUT: Int = 10
40+
val searchTimeout: Int = 10
4141

4242
/**
4343
* Executes the command implementation
@@ -61,7 +61,7 @@ object SearchCommand extends Command with SprayJsonSupport with DefaultJsonProto
6161
Http().singleRequest(HttpRequest(uri = searchUri, method = HttpMethods.POST, entity = entity))
6262
}
6363

64-
Try(Await.result(responseFuture, Duration(config.timeout.getOrElse(SEARCH_TIMEOUT) + " seconds"))).
64+
Try(Await.result(responseFuture, Duration(config.timeout.getOrElse(searchTimeout) + " seconds"))).
6565
map(response => parseResponse(response, config, start)(ec, materializer)).
6666
recover {
6767
case e : TimeoutException => {

0 commit comments

Comments
 (0)