|
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -102,9 +103,10 @@ public class GAAdminService {
|
|
|
gaProperty.setUpdateTime(property.getUpdateTime().getSeconds());
|
|
|
|
|
|
// Sets the data streams associated with this property.
|
|
|
- if (withDataStreams) {
|
|
|
- gaProperty.setDataStreams(listGADataStreams(property.getName()));
|
|
|
- }
|
|
|
+ gaProperty.setDataStreams(
|
|
|
+ withDataStreams
|
|
|
+ ? listGADataStreams(property.getName())
|
|
|
+ : Collections.EMPTY_LIST);
|
|
|
|
|
|
// Adds into the list;
|
|
|
gaProperties.add(gaProperty);
|