Skip to content

Commit

Permalink
Close every issue made by ZeWaka (tgstation#58701)
Browse files Browse the repository at this point in the history
sure whatever i totally know what im doing
  • Loading branch information
tralezab authored Apr 27, 2021
1 parent 0f288b4 commit 743c5f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tgui/packages/tgui/components/AnimatedNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class AnimatedNumber extends Component {
if (!isSafeNumber(targetValue)) {
return targetValue || null;
}
let formattedValue = currentValue;
let formattedValue;
// Use custom formatter
if (format) {
formattedValue = format(currentValue);
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const formatMoney = (value, precision = 0) => {
*/
export const formatDb = value => {
const db = 20 * Math.log(value) / Math.log(10);
const sign = db >= 0 ? '+' : db < 0 ? '–' : '';
const sign = db >= 0 ? '+' : '–';
let formatted = Math.abs(db);
if (formatted === Infinity) {
formatted = 'Inf';
Expand Down
2 changes: 1 addition & 1 deletion tools/build/cbt/glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ function mark (self, p) {

// lotta situps...
function makeAbs (self, f) {
var abs = f;
var abs;
if (f.charAt(0) === '/') {
abs = path__default['default'].join(self.root, f);
} else if (pathIsAbsolute(f) || f === '') {
Expand Down
2 changes: 1 addition & 1 deletion tools/mapmerge2/dmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def set_tile(self, coord, tile):
self.grid[coord] = self.get_or_generate_key(tile)

def generate_new_key(self):
free_keys = self._ensure_free_keys(1)
self._ensure_free_keys(1)
max_key = max_key_for(self.key_length)
# choose one of the free keys at random
key = random.randint(0, max_key - 1)
Expand Down

0 comments on commit 743c5f4

Please sign in to comment.