chore: lint codes

This commit is contained in:
Jason Song 2023-01-05 12:14:56 +08:00
parent 24446cbebe
commit 60173297aa
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5
3 changed files with 2 additions and 4 deletions

View File

@ -124,7 +124,6 @@ func RunnerDetailsEditPost(ctx *context.Context, runnerID, ownerID, repoID int64
return return
} }
if !runner.Editable(ownerID, repoID) { if !runner.Editable(ownerID, repoID) {
err = errors.New("no permission to edit this runner")
ctx.NotFound("RunnerDetailsEditPost.Editable", util.NewPermissionDeniedErrorf("no permission to edit this runner")) ctx.NotFound("RunnerDetailsEditPost.Editable", util.NewPermissionDeniedErrorf("no permission to edit this runner"))
return return
} }

View File

@ -55,8 +55,7 @@
</div> </div>
<!-- the log elements could be a lot, do not use v-if to destroy/reconstruct the DOM --> <!-- the log elements could be a lot, do not use v-if to destroy/reconstruct the DOM -->
<div class="job-step-logs" ref="elJobStepLogs" v-show="currentJobStepsStates[i].expanded"> <div class="job-step-logs" ref="elJobStepLogs" v-show="currentJobStepsStates[i].expanded"/>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -2613,7 +2613,7 @@
&.webhooks .list > .item:not(:first-child), &.webhooks .list > .item:not(:first-child),
&.githooks .list > .item:not(:first-child), &.githooks .list > .item:not(:first-child),
&.runners .list > .item:not(:first-child){ &.runners .list > .item:not(:first-child) {
padding: .25rem 1rem; padding: .25rem 1rem;
margin: 12px -1rem -1rem; margin: 12px -1rem -1rem;
} }