Skip to content

Commit

Permalink
chore(vue): Remove functions unused and indented with tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Nov 4, 2024
1 parent 0ed9ce5 commit b7b70ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
</template>

<script>
import { createGroupfolder, checkGroupfolderNameExist } from './services/groupfoldersService.js'
import { createSpace, deleteBlankSpacename } from './services/spaceService.js'
import { createSpace } from './services/spaceService.js'
import { PATTERN_CHECK_NOTHING_SPECIAL_CHARACTER } from './constants.js'
import BadCreateError from './Errors/BadCreateError.js'
import NcAppNavigation from '@nextcloud/vue/dist/Components/NcAppNavigation.js'
Expand Down Expand Up @@ -91,7 +90,7 @@ export default {
)
}
const workspace = await createSpace(name, this)
const workspace = await createSpace(name, this)
this.$store.commit('addSpace', {
color: workspace.color,
Expand Down
6 changes: 3 additions & 3 deletions src/services/spaceService.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export function createSpace(spaceName, vueInstance = undefined) {
})
.catch(error => {
if ('response' in error && 'data' in error.response) {
showNotificationError(error.response.data.title, error.response.data.message, 5000)
showNotificationError(error.response.data.title, error.response.data.message, 5000)
} else {
showNotificationError('Error to create a workspace', error.message, 5000)
}
showNotificationError('Error to create a workspace', error.message, 5000)
}

throw new BadCreateError(error)
})
Expand Down

0 comments on commit b7b70ee

Please sign in to comment.