mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: space-before-function-paren (error) (#4199)
This commit is contained in:
1 parent
e74f17e8ce
commit
0759b80435
5 files changed
+23
-6
No files matched your search
@@ -45,7 +45,7 @@ export function buildURL<P extends object = {}, Q extends object = {}>(path: str
|
||||
export function buildURLPositional<P extends object = {}, Q extends object = {}>(path: string | any) {
|
||||
const builder = buildURL(path);
|
||||
|
||||
return function(params?: P, query?: Q, fragment?: string): string {
|
||||
return function (params?: P, query?: Q, fragment?: string): string {
|
||||
return builder({ params, query, fragment });
|
||||
};
|
||||
}
|
||||
@@ -59,7 +59,7 @@ export class ServiceAccountsDetails extends React.Component<Props> {
|
||||
});
|
||||
|
||||
this.secrets = await Promise.all(secrets);
|
||||
const imagePullSecrets = serviceAccount.getImagePullSecrets().map(async({ name }) => {
|
||||
const imagePullSecrets = serviceAccount.getImagePullSecrets().map(async ({ name }) => {
|
||||
return secretsStore.load({ name, namespace }).catch(() => this.generateDummySecretObject(name));
|
||||
});
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ export const terminalStore = new Proxy({}, {
|
||||
const res = (ts as any)?.[p];
|
||||
|
||||
if (typeof res === "function") {
|
||||
return function(...args: any[]) {
|
||||
return function (...args: any[]) {
|
||||
return res.apply(ts, args);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export function interval(timeSec = 1, callback: IntervalCallback, autoRun = fals
|
||||
let timer = -1;
|
||||
let isRunning = false;
|
||||
const intervalManager = {
|
||||
start (runImmediately = false) {
|
||||
start(runImmediately = false) {
|
||||
if (isRunning) return;
|
||||
const tick = () => callback(++count);
|
||||
|
||||
@@ -36,12 +36,12 @@ export function interval(timeSec = 1, callback: IntervalCallback, autoRun = fals
|
||||
timer = window.setInterval(tick, 1000 * timeSec);
|
||||
if (runImmediately) tick();
|
||||
},
|
||||
stop () {
|
||||
stop() {
|
||||
count = 0;
|
||||
isRunning = false;
|
||||
clearInterval(timer);
|
||||
},
|
||||
restart (runImmediately = false) {
|
||||
restart(runImmediately = false) {
|
||||
this.stop();
|
||||
this.start(runImmediately);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user