Message Mixer - Syntax error on line that doesn't exist in code?

Hello! I was hoping somebody could help me figure this out. Im working on Step 10 & 11 of the Message Mixer project and ran into an unexpected error. The only edits I’ve made are in the functions encode and decode in the super-encoder.js.

// Import the encryptors functions here.
const encryptors = require('./encryptors.js')
const caesarCipher = encryptors.caesarCipher ;
const symbolCipher = encryptors.symbolCipher ;
const reverseCipher = encryptors.reverseCipher ;

const encodeMessage = (str) => {
  // Use the encryptor functions here.
const encode = reverseCipher(symbolCipher(caesarCipher(str, 7))) ;
return encode

const decodeMessage = (str) => {
  // Use the encryptor functions here.
  const decode = caesarCipher(symbolCipher(reverseCipher(str)), 7) ;
  return decode
} ;

// User input / output.

const handleInput = (userInput) => {
  const str = userInput.toString().trim();
  let output;
  if (process.argv[2] === 'encode') {
    output = encodeMessage(str);
  if (process.argv[2] === 'decode') {
    output = decodeMessage(str);
  process.stdout.write(output + '\n');
} ;

// Run the program.
process.stdout.write('Enter the message you would like to encrypt...\n> ');
process.stdin.on('data', handleInput);

The error message I am receiving is :

node super-encoder.js encode
SyntaxError: Unexpected token )
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:151:9)

Line 41 doesn’t exist in my code. If anyone knows how to fix this, please help!

Disclaimer: I am quite new to coding.

The encodeMessage function seems to be missing a } at the end of the function.

… Something so simple and obvious… thank you for your help!