From a68f11e43cd1f7ebb48366558e8b0b7fe2c4c238 Mon Sep 17 00:00:00 2001 From: dan mcweeney Date: Fri, 24 Jan 2020 10:35:38 -0500 Subject: [PATCH] Scala style fixups --- .../openwhisk/core/entity/ParameterEncryption.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/scala/src/main/scala/org/apache/openwhisk/core/entity/ParameterEncryption.scala b/common/scala/src/main/scala/org/apache/openwhisk/core/entity/ParameterEncryption.scala index df0d65b42a6..c6e2e770ae3 100644 --- a/common/scala/src/main/scala/org/apache/openwhisk/core/entity/ParameterEncryption.scala +++ b/common/scala/src/main/scala/org/apache/openwhisk/core/entity/ParameterEncryption.scala @@ -49,13 +49,13 @@ case class ParameterStorageConfig(key: String = "") { object ParameterEncryption { private val storageConfigLoader = loadConfig[ParameterStorageConfig](ConfigKeys.parameterStorage) var storageConfig = storageConfigLoader.getOrElse(ParameterStorageConfig.apply()) - private def enc = storageConfig.getKeyBytes().length match { - case 16 => new Aes128(storageConfig.getKeyBytes()) - case 32 => new Aes256(storageConfig.getKeyBytes()) + private def enc = storageConfig.getKeyBytes.length match { + case 16 => new Aes128(storageConfig.getKeyBytes) + case 32 => new Aes256(storageConfig.getKeyBytes) case 0 => new NoopCrypt case _ => throw new IllegalArgumentException( - s"Only 0, 16 and 32 characters support for key size but instead got ${storageConfig.getKeyBytes().length}") + s"Only 0, 16 and 32 characters support for key size but instead got ${storageConfig.getKeyBytes.length}") } def lock(params: Parameters): Parameters = { new Parameters(