@gesslar/toolkit 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gesslar/toolkit",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Get in, bitches, we're going toolkitting.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -66,13 +66,9 @@ export default class FileObject {
66
66
  if(!directory)
67
67
  directory = new DirectoryObject(dir)
68
68
 
69
- let final
70
-
71
- if(path.isAbsolute(fixedFile)) {
72
- final = fixedFile
73
- } else {
74
- final = path.resolve(directory.path, fixedFile)
75
- }
69
+ const final = path.isAbsolute(fixedFile)
70
+ ? fixedFile
71
+ : path.resolve(directory.path, fixedFile)
76
72
 
77
73
  const resolved = final
78
74
  const fileUri = File.pathToUri(resolved)