Skip to content

Commit 147faf8

Browse files
authored
style: remove trailing whitespace (#246)
1 parent 077ccb9 commit 147faf8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fastify.register(require('@fastify/secure-session'), {
6565
fastify.post('/', (request, reply) => {
6666
request.session.set('data', request.body)
6767

68-
// or when using a custom sessionName:
68+
// or when using a custom sessionName:
6969
request.customSessionName.set('data', request.body)
7070

7171
reply.send('hello world')
@@ -82,7 +82,7 @@ fastify.get('/', (request, reply) => {
8282

8383
fastify.get('/ping', (request, reply) => {
8484
request.session.options({maxAge: 3600})
85-
85+
8686
// Send the session cookie to the client even if the session data didn't change
8787
// can be used to update cookie expiration
8888
request.session.touch()

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ declare namespace fastifySecureSession {
3131
/**
3232
* Regenerates the session
3333
*
34-
* ignoreFields specifies which fields should be kept in the new session object.
34+
* ignoreFields specifies which fields should be kept in the new session object.
3535
*/
3636
regenerate(ignoreFields?: string[]): void;
3737
}

0 commit comments

Comments
 (0)