Skip to content

Commit

Permalink
refact: Simplify creating storage path
Browse files Browse the repository at this point in the history
Was concatenating the file name at the end when it could just be
included in the array that's being `join`ed.
  • Loading branch information
lejeunerenard committed Dec 21, 2023
1 parent b3fcfae commit c8f79d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export class AutobaseManager extends EventEmitter {
}

_getStorage (file) {
const MANAGER_DIR = ['autobase-manager', this.id.toString()].join('/')
return this.storage(MANAGER_DIR + '/' + file)
const MANAGER_DIR = ['autobase-manager', this.id.toString(), file].join('/')
return this.storage(MANAGER_DIR)
}

readStorageKeys () {
Expand Down

0 comments on commit c8f79d5

Please sign in to comment.