S1033 - Unnecessary guard around call to delete

Jmnote (토론 | 기여)님의 2024년 12월 29일 (일) 15:27 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

S1033 - Unnecessary guard around call to delete
S1033: unnecessary guard around call to delete (gosimple)
if _, ok := m["foo"]; ok {
    delete(m, "foo")
}
delete(m, "foo")

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}