Skip to content

Commit

Permalink
remove extra null check
Browse files Browse the repository at this point in the history
  • Loading branch information
sahibamittal committed Nov 12, 2024
1 parent da7c45e commit 546d090
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public class OrganizationalContactMapper implements ColumnMapper<List<Organizati

@Override
public List<OrganizationalContact> map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
if (r.getBytes(columnNumber) == null) {
return new ArrayList<>();
}
return new OrganizationalContactsJsonConverter().convertToAttribute(r.getString(columnNumber));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ public void getVulnerabilitiesByProjectTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand Down Expand Up @@ -239,8 +238,7 @@ public void getVulnerabilitiesByProjectTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand Down Expand Up @@ -273,8 +271,7 @@ public void getVulnerabilitiesByProjectTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand All @@ -297,8 +294,7 @@ public void getVulnerabilitiesByProjectTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand Down Expand Up @@ -347,8 +343,7 @@ public void getVulnerabilitiesByProjectIncludeProjectSuppressedTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand All @@ -371,8 +366,7 @@ public void getVulnerabilitiesByProjectIncludeProjectSuppressedTest() {
"uuid": "${json-unit.any-string}",
"expandDependencyGraph": false,
"isInternal": false,
"externalReferences":[],
"authors":[]
"externalReferences":[]
}
],
"uuid": "${json-unit.any-string}",
Expand Down

0 comments on commit 546d090

Please sign in to comment.