mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-20 20:39:59 +02:00
scope rotation
This commit is contained in:
@@ -351,7 +351,12 @@ export class FileBackedProfileLibrary {
|
||||
throw new Error(`Unsupported profile format in ${basename(filePath)}.`)
|
||||
}
|
||||
|
||||
if (candidate.version !== 1 && candidate.version !== 2 && candidate.version !== PROFILE_FILE_VERSION) {
|
||||
if (
|
||||
candidate.version !== 1
|
||||
&& candidate.version !== 2
|
||||
&& candidate.version !== 3
|
||||
&& candidate.version !== PROFILE_FILE_VERSION
|
||||
) {
|
||||
throw new Error(`Unsupported profile version in ${basename(filePath)}.`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user