Skip to content

Commit f48bcb6

Browse files
committed
str compare
1 parent cd6c60a commit f48bcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class PackageCommands extends Commands {
6868
method: 'GET'
6969
});
7070

71-
if (typeof res === 'text') {
71+
if (typeof res === 'string') {
7272
// The TAK Server API doesn't return application/json
7373
return JSON.parse(res) as {
7474
resultCount: number;

0 commit comments

Comments
 (0)