Skip to content

Commit d76378d

Browse files
committed
Fix formats
1 parent 508a69d commit d76378d

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/apps/weblib/ts-api/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ export function isIterable(value: unknown): value is Record<string, unknown> {
3232
return typeof value === 'object' && value !== null
3333
}
3434

35-
export function iterateObject<T>(
36-
obj: T,
37-
paramHandler: Visitor,
38-
path: string = ''
39-
): void {
35+
export function iterateObject<T>(obj: T, paramHandler: Visitor, path: string = ''): void {
4036
if (obj && obj !== null && typeof obj === 'object') {
4137
Object.keys(obj).forEach((key) => {
4238
const newPath = path + (path.length === 0 ? '' : '.') + key

src/chart/options/config.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,20 @@ void Config::setChannelParam(const std::string &path,
211211
if (parts.size() == 3 && value == "null")
212212
channel.reset();
213213
else {
214-
if (auto command = parts.size() == 4 ? "name" : std::string_view{parts.at(4)};
215-
command == "name") {
214+
if (auto command = parts.size() == 4
215+
? "name"
216+
: std::string_view{parts.at(4)};
217+
command == "name") {
216218
if (std::stoi(parts.at(3)) == 0) channel.reset();
217219
if (value == "") { channel.measureId.emplace(); }
218-
else channel.addSeries({value, table});
220+
else
221+
channel.addSeries({value, table});
219222
}
220223
else if (command == "aggregator") {
221224
if (value != "null") {
222225
if (!channel.measureId.has_value())
223226
channel.measureId.emplace(
224-
channel.dimensionIds.pop_back());
227+
channel.dimensionIds.pop_back());
225228

226229
channel.measureId->setAggr(value);
227230
}

src/dataframe/old/types.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ class SeriesIndex
4949
return name;
5050
}
5151

52-
[[nodiscard]] bool operator==(const SeriesIndex &rhs) const = default;
53-
[[nodiscard]] auto operator<=>(const SeriesIndex &rhs) const = default;
52+
[[nodiscard]] bool operator==(
53+
const SeriesIndex &rhs) const = default;
54+
[[nodiscard]] auto operator<=>(
55+
const SeriesIndex &rhs) const = default;
5456

5557
[[nodiscard]] bool isDimension() const { return !aggregator; }
5658

0 commit comments

Comments
 (0)