Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1099
@seokho-son #1104 에서 제안해 주신 대로
ListResource()
함수를'호출에는 문제가 없었으나 결과가 0개인 경우'
nil interface를 return하는 것이 아니라
길이 0인
[]Tb***Info
slice를 return하는 것으로 변경하였습니다.이에 따라,
ListResource()
함수의 references 중에서resourceList == nil
코드로 item 개수가 0인지 확인하는 부분이 있던 경우'적절한 type으로 assertion 후 해당 slice의 len이 0인지 체크' 하도록 코드를 변경했습니다. 😊
다음 2가지 REST API (및 각각에 대응되는 core 함수) 에 대해 테스트 했습니다.