Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19ebc49

Browse files
fixes possible nil reference
1 parent3be4c51 commit19ebc49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎pkg/github/projects.go‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,14 @@ func ListProjects(getClient GetClientFn, t translations.TranslationHelperFunc) (
7171
varprojects []*github.ProjectV2
7272
minimalProjects:= []MinimalProject{}
7373

74+
varqueryPtr*string
75+
ifqueryStr!="" {
76+
queryPtr=&queryStr
77+
}
78+
7479
opts:=&github.ListProjectsOptions{
7580
ListProjectsPaginationOptions: github.ListProjectsPaginationOptions{PerPage:&perPage},
76-
Query:&queryStr,
81+
Query:queryPtr,
7782
}
7883

7984
ifownerType=="org" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp