Skip to content

Commit 56e5b67

Browse files
authored
fix: small sonar issues (#2115)
* fix: explicitly return in shell functions * fix: name exported async function
1 parent 8e4ea39 commit 56e5b67

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

docker/auth.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function show_help() {
66
echo "Arguments:"
77
echo " ECR_URI URI of the ECR in AWS, example: public.ecr.aws/qzuer78 or a private ECR XXXXXXXX.dkr.ecr.region.amazonaws.com/repo."
88
echo " REGION REGION of the ECR in AWS, example: eu-central-1"
9+
return 0
910
}
1011

1112
# Check if no arguments are provided

docker/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function show_help() {
1414
echo "Arguments:"
1515
echo " ECR_URI URI of the ECR in AWS, example: public.ecr.aws/qzuer78 or a private ECR XXXXXXXX.dkr.ecr.region.amazonaws.com/repo."
1616
echo " VERSION The version that is deployed, should be a semantic version i.e v1.45.8"
17+
return 0
1718
}
1819

1920
# Check if no arguments are provided

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import MemberServiceApi from './services/member';
2020
import tagPlugin from './services/tag/tag.controller';
2121
import websocketsPlugin from './services/websockets/websocket.controller';
2222

23-
export default async function (instance: FastifyInstance): Promise<void> {
23+
export default async function registerAppPlugins(instance: FastifyInstance): Promise<void> {
2424
const { log } = instance;
2525

2626
await instance.register(fws, {

0 commit comments

Comments
 (0)