Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
evrenkaraarslan committed Aug 20, 2022
1 parent 9be3b3e commit e262e3d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/next/server/config.ts
Expand Up @@ -350,9 +350,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
throw new Error(
`Specified images.loader should be one of (${VALID_LOADERS.join(
', '
)}), received invalid value (${
loader
}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
)}), received invalid value (${loader}).\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config`
)
}

Expand All @@ -369,8 +367,7 @@ function assignDefaults(userConfig: { [key: string]: any }) {
// Append trailing slash for non-default loaders and when trailingSlash is set
if (path) {
if (
(loader !== 'default' &&
path[path.length - 1] !== '/') ||
(loader !== 'default' && path[path.length - 1] !== '/') ||
result.trailingSlash
) {
path += '/'
Expand Down

0 comments on commit e262e3d

Please sign in to comment.