diff options
author | Zero~Informatique | 2020-04-28 03:47:39 +0200 |
---|---|---|
committer | Zero~Informatique | 2020-04-28 03:47:50 +0200 |
commit | ccecfd9421f4550a71134cd46e1388e486f8c564 (patch) | |
tree | 9711ed24320150d24d85a124de3fd6177052eeb0 /viewer/src/services/indexfactory.ts | |
parent | 113bff3c4dcc1976f24df16d4224e1871e665ae0 (diff) | |
download | ldgallery-ccecfd9421f4550a71134cd46e1388e486f8c564.tar.gz |
viewer: global formatting unification
Diffstat (limited to 'viewer/src/services/indexfactory.ts')
-rw-r--r-- | viewer/src/services/indexfactory.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viewer/src/services/indexfactory.ts b/viewer/src/services/indexfactory.ts index 18a2800..e402185 100644 --- a/viewer/src/services/indexfactory.ts +++ b/viewer/src/services/indexfactory.ts | |||
@@ -17,8 +17,8 @@ | |||
17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. | 17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | import { Operation } from '@/@types/Operation'; | 20 | import { Operation } from "@/@types/Operation"; |
21 | import Navigation from '@/services/navigation'; | 21 | import Navigation from "@/services/navigation"; |
22 | 22 | ||
23 | export default class IndexFactory { | 23 | export default class IndexFactory { |
24 | 24 | ||
@@ -35,7 +35,7 @@ export default class IndexFactory { | |||
35 | return; // Directories are not indexed | 35 | return; // Directories are not indexed |
36 | } | 36 | } |
37 | for (const tag of item.tags) { | 37 | for (const tag of item.tags) { |
38 | const parts = tag.split(':'); | 38 | const parts = tag.split(":"); |
39 | let lastPart: string | null = null; | 39 | let lastPart: string | null = null; |
40 | for (const part of parts) { | 40 | for (const part of parts) { |
41 | tagsIndex[part] = IndexFactory.pushPartToIndex(tagsIndex[part], part, item, !Boolean(lastPart)); | 41 | tagsIndex[part] = IndexFactory.pushPartToIndex(tagsIndex[part], part, item, !Boolean(lastPart)); |