Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeSharedCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Shared
NodeSharedCode
Compare revisions
771f8cd079b39ec4050c5ece024dc4d70f342529 to c2afa861bf6306ddec79ffd465a4c7b0edcd3453
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/shared/nodesharedcode
Select target project
No results found
c2afa861bf6306ddec79ffd465a4c7b0edcd3453
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Swap
Target
dojo_project/projects/shared/nodesharedcode
Select target project
dojo_project/projects/shared/nodesharedcode
1 result
771f8cd079b39ec4050c5ece024dc4d70f342529
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Sonar => Remove code smells
· d7ca7a30
michael.minelli
authored
1 year ago
d7ca7a30
Merge branch 'v4.0'
· c2afa861
michael.minelli
authored
1 year ago
c2afa861
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helpers/LazyVal.ts
+1
-1
1 addition, 1 deletion
helpers/LazyVal.ts
helpers/recursiveFilesStats/RecursiveFilesStats.ts
+2
-2
2 additions, 2 deletions
helpers/recursiveFilesStats/RecursiveFilesStats.ts
with
3 additions
and
3 deletions
helpers/LazyVal.ts
View file @
c2afa861
...
...
@@ -9,7 +9,7 @@ class LazyVal<T> {
get
value
():
Promise
<
T
>
{
return
new
Promise
<
T
>
(
resolve
=>
{
if
(
this
.
val
===
undefined
)
{
void
Promise
.
resolve
(
this
.
valLoader
()).
then
((
value
:
T
)
=>
{
Promise
.
resolve
(
this
.
valLoader
()).
then
((
value
:
T
)
=>
{
this
.
val
=
value
;
resolve
(
value
);
});
...
...
This diff is collapsed.
Click to expand it.
helpers/recursiveFilesStats/RecursiveFilesStats.ts
View file @
c2afa861
...
...
@@ -75,9 +75,9 @@ class RecursiveFilesStats {
if
(
callback
)
{
fileDir
.
forEach
(
item
=>
{
void
this
.
getStat
(
item
.
path
,
absoluteBasePath
,
options
).
then
(
stat
=>
{
this
.
getStat
(
item
.
path
,
absoluteBasePath
,
options
).
then
(
stat
=>
{
if
(
stat
.
isDirectory
!
()
)
{
void
this
.
getFiles
(
absoluteBasePath
,
item
.
path
,
options
,
[],
callback
).
then
();
this
.
getFiles
(
absoluteBasePath
,
item
.
path
,
options
,
[],
callback
).
then
();
}
callback
(
item
.
path
,
stat
);
});
...
...
This diff is collapsed.
Click to expand it.