chore: add max-params eslint rule

This commit is contained in:
Simon Chan 2024-06-23 05:31:04 +08:00
parent 3c2b57cfc5
commit 73a0af4613
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
17 changed files with 79 additions and 54 deletions

View file

@ -66,7 +66,7 @@ export class Settings extends AdbCommandBase {
namespace: SettingsNamespace,
key: string,
options?: SettingsOptions,
) {
): Promise<string> {
const output = await this.base("get", namespace, options, key);
// Remove last \n
return output.substring(0, output.length - 1);