Skip to content

Commit

Permalink
refactor: 불필요한 변수 제거 및 생성자에서 초기화하도록 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 authored and LuizyHub committed Nov 29, 2023
1 parent c1c2ea3 commit 51d8475
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/backend/src/ssh/ssh.service.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { SSHConnectionPoolService } from './ssh.connection-pool.service';

@Injectable()
export class SshService {
private sshPool: SSHConnectionPoolService;

constructor(
private configService: ConfigService,
sshConnectionPoolService: SSHConnectionPoolService,
) {
this.sshPool = sshConnectionPoolService;
}
constructor(private sshPool: SSHConnectionPoolService) {}

async executeSSHCommand(
...commands: string[]
Expand Down

0 comments on commit 51d8475

Please sign in to comment.