S1033 - Unnecessary guard around call to delete

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 }}