diff --git a/core/src/main/scala/com/microsoft/azure/synapse/ml/logging/Usage/TokenUtils.scala b/core/src/main/scala/com/microsoft/azure/synapse/ml/logging/Usage/TokenUtils.scala index 06fa5ec254..12bcb8b9f9 100644 --- a/core/src/main/scala/com/microsoft/azure/synapse/ml/logging/Usage/TokenUtils.scala +++ b/core/src/main/scala/com/microsoft/azure/synapse/ml/logging/Usage/TokenUtils.scala @@ -74,8 +74,7 @@ object TokenUtils { private def refreshAccessToken(): Unit = { if (SparkContext.getOrCreate() != null) { - val token = getAccessToken("pbi") - AADToken = Some(token) + AADToken = Some(getAccessToken("pbi")) } else { AADToken = Some(new FabricTokenServiceClient().getAccessToken("pbi")) }