Skip to content

Commit

Permalink
chore: fix some typos in comment (#15377)
Browse files Browse the repository at this point in the history
Signed-off-by: pinglanlu <[email protected]>
Co-authored-by: txbì <[email protected]>
  • Loading branch information
pinglanlu and 0xTxbi authored Jan 17, 2025
1 parent e2a8382 commit 9533e7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wedlocks/src/encrypter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import forge from 'node-forge'
import config from '../config'

/**
* Encrypts data asymetrically.
* Encrypts data asymmetrically.
* The private key is known by wedlocks only, while the public key can be public.
* This way we can ensure that the data consumed by a web app was transiting thru wedlocks
* This is used for email verifcation
* This is used for email verification
* @param {*} data UTF8 string
*/
export const signParam = (
Expand Down
2 changes: 1 addition & 1 deletion wedlocks/src/functions/handler/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const headers = {
}

export const handler = async (event, context, responseCallback) => {
const callback = (err /** alway null! */, response) => {
const callback = (err /** always null! */, response) => {
if (response.statusCode >= 400) {
logger.error({
event,
Expand Down
2 changes: 1 addition & 1 deletion wedlocks/src/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const buildEmail = async (template, templateParams, args) => {
// failoverTemplate: failoverTemplate string
// recipient: email address string
// params: params for the template (as a hash). Each param is key: value where value can be either a string, or an object with {sign: <boolean></boolean>, value: <string>}
// attachments: array of attachements as data-uri strings (nodemailer will handle them)
// attachments: array of attachments as data-uri strings (nodemailer will handle them)
// }
export const route = async (args) => {
// Wrap the template
Expand Down

0 comments on commit 9533e7d

Please sign in to comment.