Skip to content

Commit 076f304

Browse files
committed
* lint
1 parent bc3bfc4 commit 076f304

File tree

1 file changed

+6
-1
lines changed
  • lib/configuration/variables/sources/instance-dependent

1 file changed

+6
-1
lines changed

lib/configuration/variables/sources/instance-dependent/get-ssm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ module.exports = (serverlessInstance) => {
3737
);
3838
} catch (error) {
3939
// Check for normalized error code instead of native one
40-
if (error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' || error.code === 'ParameterNotFound') return null;
40+
if (
41+
error.code === 'AWS_S_S_M_GET_PARAMETER_PARAMETER_NOT_FOUND' ||
42+
error.code === 'ParameterNotFound'
43+
) {
44+
return null;
45+
}
4146
throw error;
4247
}
4348
})();

0 commit comments

Comments
 (0)