Skip to content

Commit 98f6abd

Browse files
authored
Merge pull request #36 from fa0311/dev
Dev
2 parents 5fc99ad + e39466e commit 98f6abd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

twitter-openapi-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitter-openapi-typescript",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "Implementation of Twitter internal API in TypeScript",
55
"scripts": {
66
"test": "jest",

twitter-openapi-typescript/src/utils/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ export const instructionToEntry = (item: i.InstructionUnion[]): i.TimelineAddEnt
77
return (e as i.TimelineAddEntries).entries;
88
} else if (e.type == i.InstructionType.TimelineReplaceEntry) {
99
return [(e as i.TimelineReplaceEntry).entry];
10-
} else {
11-
return null;
1210
}
11+
return [];
1312
});
1413
};
1514

0 commit comments

Comments
 (0)