Commit 2ba01b6a authored by Tobias Spagert's avatar Tobias Spagert Committed by Paul Slaughter

Replace underscore with lodash for ./app/assets/javascripts/serverless

https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25011
parent 06538eb1
<script>
import _ from 'underscore';
import { isString } from 'lodash';
import { mapState, mapActions, mapGetters } from 'vuex';
import PodBox from './pod_box.vue';
import Url from './url.vue';
......@@ -42,7 +42,7 @@ export default {
return this.func.name;
},
description() {
return _.isString(this.func.description) ? this.func.description : '';
return isString(this.func.description) ? this.func.description : '';
},
funcUrl() {
return this.func.url;
......
<script>
import _ from 'underscore';
import { isString } from 'lodash';
import Timeago from '~/vue_shared/components/time_ago_tooltip.vue';
import Url from './url.vue';
import { visitUrl } from '~/lib/utils/url_utility';
......@@ -20,7 +20,7 @@ export default {
return this.func.name;
},
description() {
if (!_.isString(this.func.description)) {
if (!isString(this.func.description)) {
return '';
}
......
---
title: Replace underscore with lodash for ./app/assets/javascripts/serverless
merge_request: 25011
author: Tobias Spagert
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment