File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN sudo apt-get update \
28
28
&& sudo apt-get clean -y \
29
29
&& rm -rf /var/lib/apt/lists/*
30
30
31
- ENV GP_CODE_COMMIT d6e64cfbe48d4ca5a1fc082b62cbf1ffdb0d12c0
31
+ ENV GP_CODE_COMMIT d21dba940267458b26e51febd68cc57a9097baef
32
32
RUN mkdir gp-code \
33
33
&& cd gp-code \
34
34
&& git init \
Original file line number Diff line number Diff line change @@ -233,9 +233,13 @@ export namespace ScopedResourceGuard {
233
233
case "gitpodToken" :
234
234
return resource . subject . tokenHash ;
235
235
case "snapshot" :
236
- return resource . subject
237
- ? resource . subject . id
238
- : ( resource . workspaceID ? SNAPSHOT_WORKSPACE_SUBJECT_ID_PREFIX + resource . workspaceID : undefined ) ;
236
+ if ( resource . subject ) {
237
+ return resource . subject . id ;
238
+ }
239
+ if ( resource . workspaceID ) {
240
+ return SNAPSHOT_WORKSPACE_SUBJECT_ID_PREFIX + resource . workspaceID ;
241
+ }
242
+ return undefined ;
239
243
case "token" :
240
244
return resource . subject . value ;
241
245
case "user" :
You can’t perform that action at this time.
0 commit comments