Skip to content

Commit

Permalink
webapp: Remove not required cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Mar 15, 2024
1 parent a0d0aec commit 3138e28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/DevInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ export default defineComponent({
},
productionYear() {
return() => {
return ((parseInt(this.devInfoList.serial.toString(), 16) >> (7 * 4)) & 0xF) + 2014;
return ((parseInt(this.devInfoList.serial, 16) >> (7 * 4)) & 0xF) + 2014;
}
},
productionWeek() {
return() => {
return ((parseInt(this.devInfoList.serial.toString(), 16) >> (5 * 4)) & 0xFF).toString(16);
return ((parseInt(this.devInfoList.serial, 16) >> (5 * 4)) & 0xFF).toString(16);
}
}
}
});
</script>
</script>

0 comments on commit 3138e28

Please sign in to comment.