Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { log, LOG_PREFIX } from './logger';
import _ from 'lodash';
import { waitForCondition } from 'asyncbox';
import { SETTINGS_HELPER_ID, SETTINGS_HELPER_MAIN_ACTIVITY } from './constants.js';
import { setAnimationState } from './commands/animation';
Expand Down Expand Up @@ -171,7 +170,7 @@ export class SettingsApp {
'Check the server log for more details'
);
}
const jsonStr = _.trim(match[1]);
const jsonStr = match[1].trim();
try {
return JSON.parse(jsonStr);
} catch {
Expand Down
3 changes: 1 addition & 2 deletions lib/commands/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'lodash';
import { LOG_PREFIX } from '../logger';
import {
CLIPBOARD_RECEIVER,
Expand Down Expand Up @@ -42,5 +41,5 @@ export async function getClipboard () {
if (!match) {
throw new Error(`Cannot parse the actual clipboard content from the command output: ${output}`);
}
return _.trim(match[1]);
return match[1].trim();
}