* Remove a registered token
()
| 297 | * Remove a registered token |
| 298 | */ |
| 299 | function removeToken() { |
| 300 | |
| 301 | var globalDirPath = getGlobalDirectory(); |
| 302 | var tokenPath = di.path.join(globalDirPath, 'token.txt'); |
| 303 | |
| 304 | // The file doesn't exist |
| 305 | if (!isFile(tokenPath)) { |
| 306 | return; |
| 307 | } |
| 308 | |
| 309 | di.fs.unlinkSync(tokenPath); |
| 310 | |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Get the name of the current OS |
nothing calls this directly
no test coverage detected